{"action":"created","comment":{"url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls/comments/65219576","id":65219576,"diff_hunk":"@@ -1,11 +1,50 @@\n module Codebreaker\n   class Game\n+\n+    attr_accessor :secret_code\n+\n     def initialize\n       @secret_code = \"\"\n     end\n \n     def start\n-      @secret_code = \"1236\"\n+      @secret_code = (1..4).map { rand(1..6) }*''","path":"lib/codebreaker/game.rb","position":12,"original_position":12,"commit_id":"4969afc2b6b96b6b04833560682c3727eafd4dec","original_commit_id":"4969afc2b6b96b6b04833560682c3727eafd4dec","user":{"login":"AleksandrMishchaniuk","id":16861874,"avatar_url":"https://avatars.githubusercontent.com/u/16861874?v=3","gravatar_id":"","url":"https://api.github.com/users/AleksandrMishchaniuk","html_url":"https://github.com/AleksandrMishchaniuk","followers_url":"https://api.github.com/users/AleksandrMishchaniuk/followers","following_url":"https://api.github.com/users/AleksandrMishchaniuk/following{/other_user}","gists_url":"https://api.github.com/users/AleksandrMishchaniuk/gists{/gist_id}","starred_url":"https://api.github.com/users/AleksandrMishchaniuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleksandrMishchaniuk/subscriptions","organizations_url":"https://api.github.com/users/AleksandrMishchaniuk/orgs","repos_url":"https://api.github.com/users/AleksandrMishchaniuk/repos","events_url":"https://api.github.com/users/AleksandrMishchaniuk/events{/privacy}","received_events_url":"https://api.github.com/users/AleksandrMishchaniuk/received_events","type":"User","site_admin":false},"body":"для преобразования в строку. Но наверно Вы правы, лучше .join","created_at":"2016-05-31T16:45:11Z","updated_at":"2016-05-31T16:45:11Z","html_url":"https://github.com/AleksandrMishchaniuk/codebreaker/pull/1#discussion_r65219576","pull_request_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls/comments/65219576"},"html":{"href":"https://github.com/AleksandrMishchaniuk/codebreaker/pull/1#discussion_r65219576"},"pull_request":{"href":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls/1","id":71827764,"html_url":"https://github.com/AleksandrMishchaniuk/codebreaker/pull/1","diff_url":"https://github.com/AleksandrMishchaniuk/codebreaker/pull/1.diff","patch_url":"https://github.com/AleksandrMishchaniuk/codebreaker/pull/1.patch","issue_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/issues/1","number":1,"state":"open","locked":false,"title":"Pull request #1","user":{"login":"AleksandrMishchaniuk","id":16861874,"avatar_url":"https://avatars.githubusercontent.com/u/16861874?v=3","gravatar_id":"","url":"https://api.github.com/users/AleksandrMishchaniuk","html_url":"https://github.com/AleksandrMishchaniuk","followers_url":"https://api.github.com/users/AleksandrMishchaniuk/followers","following_url":"https://api.github.com/users/AleksandrMishchaniuk/following{/other_user}","gists_url":"https://api.github.com/users/AleksandrMishchaniuk/gists{/gist_id}","starred_url":"https://api.github.com/users/AleksandrMishchaniuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleksandrMishchaniuk/subscriptions","organizations_url":"https://api.github.com/users/AleksandrMishchaniuk/orgs","repos_url":"https://api.github.com/users/AleksandrMishchaniuk/repos","events_url":"https://api.github.com/users/AleksandrMishchaniuk/events{/privacy}","received_events_url":"https://api.github.com/users/AleksandrMishchaniuk/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-29T13:50:27Z","updated_at":"2016-05-31T16:45:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e60755adbd63197fd1fee5b38e5fee5bc942755","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls/1/commits","review_comments_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls/1/comments","review_comment_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/issues/1/comments","statuses_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/statuses/4969afc2b6b96b6b04833560682c3727eafd4dec","head":{"label":"AleksandrMishchaniuk:dev","ref":"dev","sha":"4969afc2b6b96b6b04833560682c3727eafd4dec","user":{"login":"AleksandrMishchaniuk","id":16861874,"avatar_url":"https://avatars.githubusercontent.com/u/16861874?v=3","gravatar_id":"","url":"https://api.github.com/users/AleksandrMishchaniuk","html_url":"https://github.com/AleksandrMishchaniuk","followers_url":"https://api.github.com/users/AleksandrMishchaniuk/followers","following_url":"https://api.github.com/users/AleksandrMishchaniuk/following{/other_user}","gists_url":"https://api.github.com/users/AleksandrMishchaniuk/gists{/gist_id}","starred_url":"https://api.github.com/users/AleksandrMishchaniuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleksandrMishchaniuk/subscriptions","organizations_url":"https://api.github.com/users/AleksandrMishchaniuk/orgs","repos_url":"https://api.github.com/users/AleksandrMishchaniuk/repos","events_url":"https://api.github.com/users/AleksandrMishchaniuk/events{/privacy}","received_events_url":"https://api.github.com/users/AleksandrMishchaniuk/received_events","type":"User","site_admin":false},"repo":{"id":59454954,"name":"codebreaker","full_name":"AleksandrMishchaniuk/codebreaker","owner":{"login":"AleksandrMishchaniuk","id":16861874,"avatar_url":"https://avatars.githubusercontent.com/u/16861874?v=3","gravatar_id":"","url":"https://api.github.com/users/AleksandrMishchaniuk","html_url":"https://github.com/AleksandrMishchaniuk","followers_url":"https://api.github.com/users/AleksandrMishchaniuk/followers","following_url":"https://api.github.com/users/AleksandrMishchaniuk/following{/other_user}","gists_url":"https://api.github.com/users/AleksandrMishchaniuk/gists{/gist_id}","starred_url":"https://api.github.com/users/AleksandrMishchaniuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleksandrMishchaniuk/subscriptions","organizations_url":"https://api.github.com/users/AleksandrMishchaniuk/orgs","repos_url":"https://api.github.com/users/AleksandrMishchaniuk/repos","events_url":"https://api.github.com/users/AleksandrMishchaniuk/events{/privacy}","received_events_url":"https://api.github.com/users/AleksandrMishchaniuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AleksandrMishchaniuk/codebreaker","description":"","fork":false,"url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker","forks_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/forks","keys_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/teams","hooks_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/hooks","issue_events_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/issues/events{/number}","events_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/events","assignees_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/assignees{/user}","branches_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/branches{/branch}","tags_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/tags","blobs_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/git/refs{/sha}","trees_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/statuses/{sha}","languages_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/languages","stargazers_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/stargazers","contributors_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/contributors","subscribers_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/subscribers","subscription_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/subscription","commits_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/commits{/sha}","git_commits_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/git/commits{/sha}","comments_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/comments{/number}","issue_comment_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/issues/comments{/number}","contents_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/contents/{+path}","compare_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/merges","archive_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/downloads","issues_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/issues{/number}","pulls_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls{/number}","milestones_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/milestones{/number}","notifications_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/labels{/name}","releases_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/releases{/id}","deployments_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/deployments","created_at":"2016-05-23T05:41:38Z","updated_at":"2016-05-23T07:10:20Z","pushed_at":"2016-05-30T20:37:33Z","git_url":"git://github.com/AleksandrMishchaniuk/codebreaker.git","ssh_url":"git@github.com:AleksandrMishchaniuk/codebreaker.git","clone_url":"https://github.com/AleksandrMishchaniuk/codebreaker.git","svn_url":"https://github.com/AleksandrMishchaniuk/codebreaker","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AleksandrMishchaniuk:master","ref":"master","sha":"24211eed258c13ce9900b4599829e07ad42ca3e1","user":{"login":"AleksandrMishchaniuk","id":16861874,"avatar_url":"https://avatars.githubusercontent.com/u/16861874?v=3","gravatar_id":"","url":"https://api.github.com/users/AleksandrMishchaniuk","html_url":"https://github.com/AleksandrMishchaniuk","followers_url":"https://api.github.com/users/AleksandrMishchaniuk/followers","following_url":"https://api.github.com/users/AleksandrMishchaniuk/following{/other_user}","gists_url":"https://api.github.com/users/AleksandrMishchaniuk/gists{/gist_id}","starred_url":"https://api.github.com/users/AleksandrMishchaniuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleksandrMishchaniuk/subscriptions","organizations_url":"https://api.github.com/users/AleksandrMishchaniuk/orgs","repos_url":"https://api.github.com/users/AleksandrMishchaniuk/repos","events_url":"https://api.github.com/users/AleksandrMishchaniuk/events{/privacy}","received_events_url":"https://api.github.com/users/AleksandrMishchaniuk/received_events","type":"User","site_admin":false},"repo":{"id":59454954,"name":"codebreaker","full_name":"AleksandrMishchaniuk/codebreaker","owner":{"login":"AleksandrMishchaniuk","id":16861874,"avatar_url":"https://avatars.githubusercontent.com/u/16861874?v=3","gravatar_id":"","url":"https://api.github.com/users/AleksandrMishchaniuk","html_url":"https://github.com/AleksandrMishchaniuk","followers_url":"https://api.github.com/users/AleksandrMishchaniuk/followers","following_url":"https://api.github.com/users/AleksandrMishchaniuk/following{/other_user}","gists_url":"https://api.github.com/users/AleksandrMishchaniuk/gists{/gist_id}","starred_url":"https://api.github.com/users/AleksandrMishchaniuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleksandrMishchaniuk/subscriptions","organizations_url":"https://api.github.com/users/AleksandrMishchaniuk/orgs","repos_url":"https://api.github.com/users/AleksandrMishchaniuk/repos","events_url":"https://api.github.com/users/AleksandrMishchaniuk/events{/privacy}","received_events_url":"https://api.github.com/users/AleksandrMishchaniuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AleksandrMishchaniuk/codebreaker","description":"","fork":false,"url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker","forks_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/forks","keys_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/teams","hooks_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/hooks","issue_events_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/issues/events{/number}","events_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/events","assignees_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/assignees{/user}","branches_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/branches{/branch}","tags_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/tags","blobs_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/git/refs{/sha}","trees_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/statuses/{sha}","languages_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/languages","stargazers_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/stargazers","contributors_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/contributors","subscribers_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/subscribers","subscription_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/subscription","commits_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/commits{/sha}","git_commits_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/git/commits{/sha}","comments_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/comments{/number}","issue_comment_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/issues/comments{/number}","contents_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/contents/{+path}","compare_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/merges","archive_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/downloads","issues_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/issues{/number}","pulls_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls{/number}","milestones_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/milestones{/number}","notifications_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/labels{/name}","releases_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/releases{/id}","deployments_url":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/deployments","created_at":"2016-05-23T05:41:38Z","updated_at":"2016-05-23T07:10:20Z","pushed_at":"2016-05-30T20:37:33Z","git_url":"git://github.com/AleksandrMishchaniuk/codebreaker.git","ssh_url":"git@github.com:AleksandrMishchaniuk/codebreaker.git","clone_url":"https://github.com/AleksandrMishchaniuk/codebreaker.git","svn_url":"https://github.com/AleksandrMishchaniuk/codebreaker","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls/1"},"html":{"href":"https://github.com/AleksandrMishchaniuk/codebreaker/pull/1"},"issue":{"href":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/issues/1"},"comments":{"href":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/AleksandrMishchaniuk/codebreaker/statuses/4969afc2b6b96b6b04833560682c3727eafd4dec"}}}}
{"actor":{"display_login":"AleksandrMishchaniuk"}}