{"action":"created","comment":{"url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/comments/34615599","id":34615599,"diff_hunk":"@@ -0,0 +1,100 @@\n+class Shop\n+  @@shops = []\n+\n+  def initialize(shop_name)\n+    return puts 'Shop already exists.' if @@shops.include?(shop_name)","path":"anna_boyko/shop/shop.rb","position":5,"original_position":5,"commit_id":"6d1b796471aa6dfa044465d7eee2a6cff1e6edac","original_commit_id":"6d1b796471aa6dfa044465d7eee2a6cff1e6edac","user":{"login":"beornborn","id":1485786,"avatar_url":"https://avatars.githubusercontent.com/u/1485786?v=3","gravatar_id":"","url":"https://api.github.com/users/beornborn","html_url":"https://github.com/beornborn","followers_url":"https://api.github.com/users/beornborn/followers","following_url":"https://api.github.com/users/beornborn/following{/other_user}","gists_url":"https://api.github.com/users/beornborn/gists{/gist_id}","starred_url":"https://api.github.com/users/beornborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beornborn/subscriptions","organizations_url":"https://api.github.com/users/beornborn/orgs","repos_url":"https://api.github.com/users/beornborn/repos","events_url":"https://api.github.com/users/beornborn/events{/privacy}","received_events_url":"https://api.github.com/users/beornborn/received_events","type":"User","site_admin":false},"body":"fail вместо return. иначе объект все равно создастся\r\n","created_at":"2015-07-14T20:32:17Z","updated_at":"2015-07-14T20:32:17Z","html_url":"https://github.com/kiev-ruby/hometasks/pull/29#discussion_r34615599","pull_request_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/comments/34615599"},"html":{"href":"https://github.com/kiev-ruby/hometasks/pull/29#discussion_r34615599"},"pull_request":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/29","id":39639558,"html_url":"https://github.com/kiev-ruby/hometasks/pull/29","diff_url":"https://github.com/kiev-ruby/hometasks/pull/29.diff","patch_url":"https://github.com/kiev-ruby/hometasks/pull/29.patch","issue_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues/29","number":29,"state":"open","locked":false,"title":"Adding Ruby task Anna Boyko","user":{"login":"Boyko-Anna","id":9992981,"avatar_url":"https://avatars.githubusercontent.com/u/9992981?v=3","gravatar_id":"","url":"https://api.github.com/users/Boyko-Anna","html_url":"https://github.com/Boyko-Anna","followers_url":"https://api.github.com/users/Boyko-Anna/followers","following_url":"https://api.github.com/users/Boyko-Anna/following{/other_user}","gists_url":"https://api.github.com/users/Boyko-Anna/gists{/gist_id}","starred_url":"https://api.github.com/users/Boyko-Anna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Boyko-Anna/subscriptions","organizations_url":"https://api.github.com/users/Boyko-Anna/orgs","repos_url":"https://api.github.com/users/Boyko-Anna/repos","events_url":"https://api.github.com/users/Boyko-Anna/events{/privacy}","received_events_url":"https://api.github.com/users/Boyko-Anna/received_events","type":"User","site_admin":false},"body":"Added files init, item, shop","created_at":"2015-07-09T23:34:37Z","updated_at":"2015-07-14T20:32:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aaf632c249ba62f97f1747988a3624234db5ffe7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/29/commits","review_comments_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/29/comments","review_comment_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues/29/comments","statuses_url":"https://api.github.com/repos/kiev-ruby/hometasks/statuses/6d1b796471aa6dfa044465d7eee2a6cff1e6edac","head":{"label":"Boyko-Anna:feature","ref":"feature","sha":"6d1b796471aa6dfa044465d7eee2a6cff1e6edac","user":{"login":"Boyko-Anna","id":9992981,"avatar_url":"https://avatars.githubusercontent.com/u/9992981?v=3","gravatar_id":"","url":"https://api.github.com/users/Boyko-Anna","html_url":"https://github.com/Boyko-Anna","followers_url":"https://api.github.com/users/Boyko-Anna/followers","following_url":"https://api.github.com/users/Boyko-Anna/following{/other_user}","gists_url":"https://api.github.com/users/Boyko-Anna/gists{/gist_id}","starred_url":"https://api.github.com/users/Boyko-Anna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Boyko-Anna/subscriptions","organizations_url":"https://api.github.com/users/Boyko-Anna/orgs","repos_url":"https://api.github.com/users/Boyko-Anna/repos","events_url":"https://api.github.com/users/Boyko-Anna/events{/privacy}","received_events_url":"https://api.github.com/users/Boyko-Anna/received_events","type":"User","site_admin":false},"repo":{"id":38846918,"name":"hometasks","full_name":"Boyko-Anna/hometasks","owner":{"login":"Boyko-Anna","id":9992981,"avatar_url":"https://avatars.githubusercontent.com/u/9992981?v=3","gravatar_id":"","url":"https://api.github.com/users/Boyko-Anna","html_url":"https://github.com/Boyko-Anna","followers_url":"https://api.github.com/users/Boyko-Anna/followers","following_url":"https://api.github.com/users/Boyko-Anna/following{/other_user}","gists_url":"https://api.github.com/users/Boyko-Anna/gists{/gist_id}","starred_url":"https://api.github.com/users/Boyko-Anna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Boyko-Anna/subscriptions","organizations_url":"https://api.github.com/users/Boyko-Anna/orgs","repos_url":"https://api.github.com/users/Boyko-Anna/repos","events_url":"https://api.github.com/users/Boyko-Anna/events{/privacy}","received_events_url":"https://api.github.com/users/Boyko-Anna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Boyko-Anna/hometasks","description":"","fork":true,"url":"https://api.github.com/repos/Boyko-Anna/hometasks","forks_url":"https://api.github.com/repos/Boyko-Anna/hometasks/forks","keys_url":"https://api.github.com/repos/Boyko-Anna/hometasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Boyko-Anna/hometasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Boyko-Anna/hometasks/teams","hooks_url":"https://api.github.com/repos/Boyko-Anna/hometasks/hooks","issue_events_url":"https://api.github.com/repos/Boyko-Anna/hometasks/issues/events{/number}","events_url":"https://api.github.com/repos/Boyko-Anna/hometasks/events","assignees_url":"https://api.github.com/repos/Boyko-Anna/hometasks/assignees{/user}","branches_url":"https://api.github.com/repos/Boyko-Anna/hometasks/branches{/branch}","tags_url":"https://api.github.com/repos/Boyko-Anna/hometasks/tags","blobs_url":"https://api.github.com/repos/Boyko-Anna/hometasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Boyko-Anna/hometasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Boyko-Anna/hometasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Boyko-Anna/hometasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Boyko-Anna/hometasks/statuses/{sha}","languages_url":"https://api.github.com/repos/Boyko-Anna/hometasks/languages","stargazers_url":"https://api.github.com/repos/Boyko-Anna/hometasks/stargazers","contributors_url":"https://api.github.com/repos/Boyko-Anna/hometasks/contributors","subscribers_url":"https://api.github.com/repos/Boyko-Anna/hometasks/subscribers","subscription_url":"https://api.github.com/repos/Boyko-Anna/hometasks/subscription","commits_url":"https://api.github.com/repos/Boyko-Anna/hometasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Boyko-Anna/hometasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Boyko-Anna/hometasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Boyko-Anna/hometasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Boyko-Anna/hometasks/contents/{+path}","compare_url":"https://api.github.com/repos/Boyko-Anna/hometasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Boyko-Anna/hometasks/merges","archive_url":"https://api.github.com/repos/Boyko-Anna/hometasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Boyko-Anna/hometasks/downloads","issues_url":"https://api.github.com/repos/Boyko-Anna/hometasks/issues{/number}","pulls_url":"https://api.github.com/repos/Boyko-Anna/hometasks/pulls{/number}","milestones_url":"https://api.github.com/repos/Boyko-Anna/hometasks/milestones{/number}","notifications_url":"https://api.github.com/repos/Boyko-Anna/hometasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Boyko-Anna/hometasks/labels{/name}","releases_url":"https://api.github.com/repos/Boyko-Anna/hometasks/releases{/id}","created_at":"2015-07-09T21:46:17Z","updated_at":"2015-07-09T21:46:17Z","pushed_at":"2015-07-12T18:03:21Z","git_url":"git://github.com/Boyko-Anna/hometasks.git","ssh_url":"git@github.com:Boyko-Anna/hometasks.git","clone_url":"https://github.com/Boyko-Anna/hometasks.git","svn_url":"https://github.com/Boyko-Anna/hometasks","homepage":null,"size":1096,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kiev-ruby:master","ref":"master","sha":"4b514dd2db866f758030c8661dc1597cda2f6681","user":{"login":"kiev-ruby","id":11543510,"avatar_url":"https://avatars.githubusercontent.com/u/11543510?v=3","gravatar_id":"","url":"https://api.github.com/users/kiev-ruby","html_url":"https://github.com/kiev-ruby","followers_url":"https://api.github.com/users/kiev-ruby/followers","following_url":"https://api.github.com/users/kiev-ruby/following{/other_user}","gists_url":"https://api.github.com/users/kiev-ruby/gists{/gist_id}","starred_url":"https://api.github.com/users/kiev-ruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiev-ruby/subscriptions","organizations_url":"https://api.github.com/users/kiev-ruby/orgs","repos_url":"https://api.github.com/users/kiev-ruby/repos","events_url":"https://api.github.com/users/kiev-ruby/events{/privacy}","received_events_url":"https://api.github.com/users/kiev-ruby/received_events","type":"Organization","site_admin":false},"repo":{"id":35303414,"name":"hometasks","full_name":"kiev-ruby/hometasks","owner":{"login":"kiev-ruby","id":11543510,"avatar_url":"https://avatars.githubusercontent.com/u/11543510?v=3","gravatar_id":"","url":"https://api.github.com/users/kiev-ruby","html_url":"https://github.com/kiev-ruby","followers_url":"https://api.github.com/users/kiev-ruby/followers","following_url":"https://api.github.com/users/kiev-ruby/following{/other_user}","gists_url":"https://api.github.com/users/kiev-ruby/gists{/gist_id}","starred_url":"https://api.github.com/users/kiev-ruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiev-ruby/subscriptions","organizations_url":"https://api.github.com/users/kiev-ruby/orgs","repos_url":"https://api.github.com/users/kiev-ruby/repos","events_url":"https://api.github.com/users/kiev-ruby/events{/privacy}","received_events_url":"https://api.github.com/users/kiev-ruby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kiev-ruby/hometasks","description":"","fork":false,"url":"https://api.github.com/repos/kiev-ruby/hometasks","forks_url":"https://api.github.com/repos/kiev-ruby/hometasks/forks","keys_url":"https://api.github.com/repos/kiev-ruby/hometasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiev-ruby/hometasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiev-ruby/hometasks/teams","hooks_url":"https://api.github.com/repos/kiev-ruby/hometasks/hooks","issue_events_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues/events{/number}","events_url":"https://api.github.com/repos/kiev-ruby/hometasks/events","assignees_url":"https://api.github.com/repos/kiev-ruby/hometasks/assignees{/user}","branches_url":"https://api.github.com/repos/kiev-ruby/hometasks/branches{/branch}","tags_url":"https://api.github.com/repos/kiev-ruby/hometasks/tags","blobs_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiev-ruby/hometasks/statuses/{sha}","languages_url":"https://api.github.com/repos/kiev-ruby/hometasks/languages","stargazers_url":"https://api.github.com/repos/kiev-ruby/hometasks/stargazers","contributors_url":"https://api.github.com/repos/kiev-ruby/hometasks/contributors","subscribers_url":"https://api.github.com/repos/kiev-ruby/hometasks/subscribers","subscription_url":"https://api.github.com/repos/kiev-ruby/hometasks/subscription","commits_url":"https://api.github.com/repos/kiev-ruby/hometasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiev-ruby/hometasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiev-ruby/hometasks/contents/{+path}","compare_url":"https://api.github.com/repos/kiev-ruby/hometasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiev-ruby/hometasks/merges","archive_url":"https://api.github.com/repos/kiev-ruby/hometasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiev-ruby/hometasks/downloads","issues_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues{/number}","pulls_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls{/number}","milestones_url":"https://api.github.com/repos/kiev-ruby/hometasks/milestones{/number}","notifications_url":"https://api.github.com/repos/kiev-ruby/hometasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiev-ruby/hometasks/labels{/name}","releases_url":"https://api.github.com/repos/kiev-ruby/hometasks/releases{/id}","created_at":"2015-05-08T21:49:55Z","updated_at":"2015-07-02T20:13:22Z","pushed_at":"2015-07-14T20:29:26Z","git_url":"git://github.com/kiev-ruby/hometasks.git","ssh_url":"git@github.com:kiev-ruby/hometasks.git","clone_url":"https://github.com/kiev-ruby/hometasks.git","svn_url":"https://github.com/kiev-ruby/hometasks","homepage":null,"size":2056,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":4,"forks":9,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/29"},"html":{"href":"https://github.com/kiev-ruby/hometasks/pull/29"},"issue":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/issues/29"},"comments":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/statuses/6d1b796471aa6dfa044465d7eee2a6cff1e6edac"}}}}