{"action":"created","comment":{"url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/comments/35152773","id":35152773,"diff_hunk":"@@ -0,0 +1,57 @@\n+# class shop\n+class Shop\n+  attr_accessor :name, :items\n+\n+  def initialize(name, items = [])\n+    @name = name\n+    @items = items\n+  end\n+\n+  def add_item(item)\n+    @items << item\n+  end\n+\n+  def items_by_category(category)\n+    @items.select{|item| item.category == category }","path":"andrey.matvienko/shop/shop.rb","position":15,"original_position":15,"commit_id":"430bb901af500baf929f315786adc58c1367eb53","original_commit_id":"430bb901af500baf929f315786adc58c1367eb53","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":"пробел перед фигурной скобкой","created_at":"2015-07-21T20:50:20Z","updated_at":"2015-07-21T20:50:20Z","html_url":"https://github.com/kiev-ruby/hometasks/pull/27#discussion_r35152773","pull_request_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/comments/35152773"},"html":{"href":"https://github.com/kiev-ruby/hometasks/pull/27#discussion_r35152773"},"pull_request":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/27","id":39394660,"html_url":"https://github.com/kiev-ruby/hometasks/pull/27","diff_url":"https://github.com/kiev-ruby/hometasks/pull/27.diff","patch_url":"https://github.com/kiev-ruby/hometasks/pull/27.patch","issue_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues/27","number":27,"state":"open","locked":false,"title":"Create shop.rb","user":{"login":"AndreyMatvienko","id":12958274,"avatar_url":"https://avatars.githubusercontent.com/u/12958274?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreyMatvienko","html_url":"https://github.com/AndreyMatvienko","followers_url":"https://api.github.com/users/AndreyMatvienko/followers","following_url":"https://api.github.com/users/AndreyMatvienko/following{/other_user}","gists_url":"https://api.github.com/users/AndreyMatvienko/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyMatvienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyMatvienko/subscriptions","organizations_url":"https://api.github.com/users/AndreyMatvienko/orgs","repos_url":"https://api.github.com/users/AndreyMatvienko/repos","events_url":"https://api.github.com/users/AndreyMatvienko/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyMatvienko/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-07T17:20:24Z","updated_at":"2015-07-21T20:50:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14e51fc47acb5a69b4ca6bfbcfb076917b7c4efe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/27/commits","review_comments_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/27/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/27/comments","statuses_url":"https://api.github.com/repos/kiev-ruby/hometasks/statuses/430bb901af500baf929f315786adc58c1367eb53","head":{"label":"AndreyMatvienko:AndreyMatvienko","ref":"AndreyMatvienko","sha":"430bb901af500baf929f315786adc58c1367eb53","user":{"login":"AndreyMatvienko","id":12958274,"avatar_url":"https://avatars.githubusercontent.com/u/12958274?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreyMatvienko","html_url":"https://github.com/AndreyMatvienko","followers_url":"https://api.github.com/users/AndreyMatvienko/followers","following_url":"https://api.github.com/users/AndreyMatvienko/following{/other_user}","gists_url":"https://api.github.com/users/AndreyMatvienko/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyMatvienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyMatvienko/subscriptions","organizations_url":"https://api.github.com/users/AndreyMatvienko/orgs","repos_url":"https://api.github.com/users/AndreyMatvienko/repos","events_url":"https://api.github.com/users/AndreyMatvienko/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyMatvienko/received_events","type":"User","site_admin":false},"repo":{"id":38427057,"name":"hometasks","full_name":"AndreyMatvienko/hometasks","owner":{"login":"AndreyMatvienko","id":12958274,"avatar_url":"https://avatars.githubusercontent.com/u/12958274?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreyMatvienko","html_url":"https://github.com/AndreyMatvienko","followers_url":"https://api.github.com/users/AndreyMatvienko/followers","following_url":"https://api.github.com/users/AndreyMatvienko/following{/other_user}","gists_url":"https://api.github.com/users/AndreyMatvienko/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyMatvienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyMatvienko/subscriptions","organizations_url":"https://api.github.com/users/AndreyMatvienko/orgs","repos_url":"https://api.github.com/users/AndreyMatvienko/repos","events_url":"https://api.github.com/users/AndreyMatvienko/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyMatvienko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AndreyMatvienko/hometasks","description":"","fork":true,"url":"https://api.github.com/repos/AndreyMatvienko/hometasks","forks_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/forks","keys_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/teams","hooks_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/hooks","issue_events_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/issues/events{/number}","events_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/events","assignees_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/assignees{/user}","branches_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/branches{/branch}","tags_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/tags","blobs_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/statuses/{sha}","languages_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/languages","stargazers_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/stargazers","contributors_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/contributors","subscribers_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/subscribers","subscription_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/subscription","commits_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/contents/{+path}","compare_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/merges","archive_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/downloads","issues_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/issues{/number}","pulls_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/pulls{/number}","milestones_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/milestones{/number}","notifications_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/labels{/name}","releases_url":"https://api.github.com/repos/AndreyMatvienko/hometasks/releases{/id}","created_at":"2015-07-02T10:42:25Z","updated_at":"2015-07-02T10:42:26Z","pushed_at":"2015-07-15T14:10:51Z","git_url":"git://github.com/AndreyMatvienko/hometasks.git","ssh_url":"git@github.com:AndreyMatvienko/hometasks.git","clone_url":"https://github.com/AndreyMatvienko/hometasks.git","svn_url":"https://github.com/AndreyMatvienko/hometasks","homepage":null,"size":1232,"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-19T19:54: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":1958,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":3,"forks":10,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/27"},"html":{"href":"https://github.com/kiev-ruby/hometasks/pull/27"},"issue":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/issues/27"},"comments":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/27/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/27/commits"},"statuses":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/statuses/430bb901af500baf929f315786adc58c1367eb53"}}}}