{"action":"created","comment":{"url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls/comments/115811461","pull_request_review_id":37383417,"id":115811461,"diff_hunk":"@@ -1,8 +1,29 @@\n class Restaurant\n-  attr_accessor :name\n+  attr_accessor :name, :reviews\n+\n+  @@all = []\n \n   def initialize(name)\n     @name = name\n+    @@all << self\n+    @reviews = []\n+  end\n+\n+  def self.all\n+    @@all\n   end\n \n+  def self.find_by_name(name)\n+    @@all.find { |rest| rest.name.downcase == name.downcase }\n+  end\n+\n+  def reviews\n+    @reviews","path":"app/models/restaurant.rb","position":22,"original_position":22,"commit_id":"ba4b2a65a7b9fca3d2f20673cd0793c779585107","original_commit_id":"ba4b2a65a7b9fca3d2f20673cd0793c779585107","user":{"login":"ToneLoke","id":10687151,"avatar_url":"https://avatars1.githubusercontent.com/u/10687151?v=3","gravatar_id":"","url":"https://api.github.com/users/ToneLoke","html_url":"https://github.com/ToneLoke","followers_url":"https://api.github.com/users/ToneLoke/followers","following_url":"https://api.github.com/users/ToneLoke/following{/other_user}","gists_url":"https://api.github.com/users/ToneLoke/gists{/gist_id}","starred_url":"https://api.github.com/users/ToneLoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToneLoke/subscriptions","organizations_url":"https://api.github.com/users/ToneLoke/orgs","repos_url":"https://api.github.com/users/ToneLoke/repos","events_url":"https://api.github.com/users/ToneLoke/events{/privacy}","received_events_url":"https://api.github.com/users/ToneLoke/received_events","type":"User","site_admin":false},"body":"Use Review class to find matching reviews. ","created_at":"2017-05-10T18:04:59Z","updated_at":"2017-05-10T18:04:59Z","html_url":"https://github.com/learn-co-students/object-relations-assessment-web-042417/pull/9#discussion_r115811461","pull_request_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls/comments/115811461"},"html":{"href":"https://github.com/learn-co-students/object-relations-assessment-web-042417/pull/9#discussion_r115811461"},"pull_request":{"href":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls/9","id":119461970,"html_url":"https://github.com/learn-co-students/object-relations-assessment-web-042417/pull/9","diff_url":"https://github.com/learn-co-students/object-relations-assessment-web-042417/pull/9.diff","patch_url":"https://github.com/learn-co-students/object-relations-assessment-web-042417/pull/9.patch","issue_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/issues/9","number":9,"state":"open","locked":false,"title":"done","user":{"login":"linvvian","id":26659705,"avatar_url":"https://avatars2.githubusercontent.com/u/26659705?v=3","gravatar_id":"","url":"https://api.github.com/users/linvvian","html_url":"https://github.com/linvvian","followers_url":"https://api.github.com/users/linvvian/followers","following_url":"https://api.github.com/users/linvvian/following{/other_user}","gists_url":"https://api.github.com/users/linvvian/gists{/gist_id}","starred_url":"https://api.github.com/users/linvvian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linvvian/subscriptions","organizations_url":"https://api.github.com/users/linvvian/orgs","repos_url":"https://api.github.com/users/linvvian/repos","events_url":"https://api.github.com/users/linvvian/events{/privacy}","received_events_url":"https://api.github.com/users/linvvian/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-08T14:37:15Z","updated_at":"2017-05-10T18:04:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b2089d814f1ce98581ec0fd77682a9e3de67a85","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls/9/commits","review_comments_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls/9/comments","review_comment_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls/comments{/number}","comments_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/issues/9/comments","statuses_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/statuses/ba4b2a65a7b9fca3d2f20673cd0793c779585107","head":{"label":"linvvian:master","ref":"master","sha":"ba4b2a65a7b9fca3d2f20673cd0793c779585107","user":{"login":"linvvian","id":26659705,"avatar_url":"https://avatars2.githubusercontent.com/u/26659705?v=3","gravatar_id":"","url":"https://api.github.com/users/linvvian","html_url":"https://github.com/linvvian","followers_url":"https://api.github.com/users/linvvian/followers","following_url":"https://api.github.com/users/linvvian/following{/other_user}","gists_url":"https://api.github.com/users/linvvian/gists{/gist_id}","starred_url":"https://api.github.com/users/linvvian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linvvian/subscriptions","organizations_url":"https://api.github.com/users/linvvian/orgs","repos_url":"https://api.github.com/users/linvvian/repos","events_url":"https://api.github.com/users/linvvian/events{/privacy}","received_events_url":"https://api.github.com/users/linvvian/received_events","type":"User","site_admin":false},"repo":{"id":90631510,"name":"object-relations-assessment-web-042417","full_name":"linvvian/object-relations-assessment-web-042417","owner":{"login":"linvvian","id":26659705,"avatar_url":"https://avatars2.githubusercontent.com/u/26659705?v=3","gravatar_id":"","url":"https://api.github.com/users/linvvian","html_url":"https://github.com/linvvian","followers_url":"https://api.github.com/users/linvvian/followers","following_url":"https://api.github.com/users/linvvian/following{/other_user}","gists_url":"https://api.github.com/users/linvvian/gists{/gist_id}","starred_url":"https://api.github.com/users/linvvian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linvvian/subscriptions","organizations_url":"https://api.github.com/users/linvvian/orgs","repos_url":"https://api.github.com/users/linvvian/repos","events_url":"https://api.github.com/users/linvvian/events{/privacy}","received_events_url":"https://api.github.com/users/linvvian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/linvvian/object-relations-assessment-web-042417","description":null,"fork":true,"url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417","forks_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/forks","keys_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/teams","hooks_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/hooks","issue_events_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/issues/events{/number}","events_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/events","assignees_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/assignees{/user}","branches_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/branches{/branch}","tags_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/tags","blobs_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/git/refs{/sha}","trees_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/statuses/{sha}","languages_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/languages","stargazers_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/stargazers","contributors_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/contributors","subscribers_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/subscribers","subscription_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/subscription","commits_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/commits{/sha}","git_commits_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/git/commits{/sha}","comments_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/comments{/number}","issue_comment_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/issues/comments{/number}","contents_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/contents/{+path}","compare_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/merges","archive_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/downloads","issues_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/issues{/number}","pulls_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/pulls{/number}","milestones_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/milestones{/number}","notifications_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/labels{/name}","releases_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/releases{/id}","deployments_url":"https://api.github.com/repos/linvvian/object-relations-assessment-web-042417/deployments","created_at":"2017-05-08T13:31:06Z","updated_at":"2017-05-08T13:31:07Z","pushed_at":"2017-05-08T14:37:02Z","git_url":"git://github.com/linvvian/object-relations-assessment-web-042417.git","ssh_url":"git@github.com:linvvian/object-relations-assessment-web-042417.git","clone_url":"https://github.com/linvvian/object-relations-assessment-web-042417.git","svn_url":"https://github.com/linvvian/object-relations-assessment-web-042417","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"learn-co-students:master","ref":"master","sha":"7a037b9ddbbb6f38cfdb1621c15483480e3f78e5","user":{"login":"learn-co-students","id":8825476,"avatar_url":"https://avatars0.githubusercontent.com/u/8825476?v=3","gravatar_id":"","url":"https://api.github.com/users/learn-co-students","html_url":"https://github.com/learn-co-students","followers_url":"https://api.github.com/users/learn-co-students/followers","following_url":"https://api.github.com/users/learn-co-students/following{/other_user}","gists_url":"https://api.github.com/users/learn-co-students/gists{/gist_id}","starred_url":"https://api.github.com/users/learn-co-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learn-co-students/subscriptions","organizations_url":"https://api.github.com/users/learn-co-students/orgs","repos_url":"https://api.github.com/users/learn-co-students/repos","events_url":"https://api.github.com/users/learn-co-students/events{/privacy}","received_events_url":"https://api.github.com/users/learn-co-students/received_events","type":"Organization","site_admin":false},"repo":{"id":90631453,"name":"object-relations-assessment-web-042417","full_name":"learn-co-students/object-relations-assessment-web-042417","owner":{"login":"learn-co-students","id":8825476,"avatar_url":"https://avatars0.githubusercontent.com/u/8825476?v=3","gravatar_id":"","url":"https://api.github.com/users/learn-co-students","html_url":"https://github.com/learn-co-students","followers_url":"https://api.github.com/users/learn-co-students/followers","following_url":"https://api.github.com/users/learn-co-students/following{/other_user}","gists_url":"https://api.github.com/users/learn-co-students/gists{/gist_id}","starred_url":"https://api.github.com/users/learn-co-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learn-co-students/subscriptions","organizations_url":"https://api.github.com/users/learn-co-students/orgs","repos_url":"https://api.github.com/users/learn-co-students/repos","events_url":"https://api.github.com/users/learn-co-students/events{/privacy}","received_events_url":"https://api.github.com/users/learn-co-students/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/learn-co-students/object-relations-assessment-web-042417","description":null,"fork":false,"url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417","forks_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/forks","keys_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/keys{/key_id}","collaborators_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/teams","hooks_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/hooks","issue_events_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/issues/events{/number}","events_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/events","assignees_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/assignees{/user}","branches_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/branches{/branch}","tags_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/tags","blobs_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/git/refs{/sha}","trees_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/git/trees{/sha}","statuses_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/statuses/{sha}","languages_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/languages","stargazers_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/stargazers","contributors_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/contributors","subscribers_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/subscribers","subscription_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/subscription","commits_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/commits{/sha}","git_commits_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/git/commits{/sha}","comments_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/comments{/number}","issue_comment_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/issues/comments{/number}","contents_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/contents/{+path}","compare_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/compare/{base}...{head}","merges_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/merges","archive_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/downloads","issues_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/issues{/number}","pulls_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls{/number}","milestones_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/milestones{/number}","notifications_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/labels{/name}","releases_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/releases{/id}","deployments_url":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/deployments","created_at":"2017-05-08T13:30:32Z","updated_at":"2017-05-08T13:30:36Z","pushed_at":"2017-05-08T14:39:56Z","git_url":"git://github.com/learn-co-students/object-relations-assessment-web-042417.git","ssh_url":"git@github.com:learn-co-students/object-relations-assessment-web-042417.git","clone_url":"https://github.com/learn-co-students/object-relations-assessment-web-042417.git","svn_url":"https://github.com/learn-co-students/object-relations-assessment-web-042417","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":20,"forks":20,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls/9"},"html":{"href":"https://github.com/learn-co-students/object-relations-assessment-web-042417/pull/9"},"issue":{"href":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/issues/9"},"comments":{"href":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/learn-co-students/object-relations-assessment-web-042417/statuses/ba4b2a65a7b9fca3d2f20673cd0793c779585107"}}}}
{"actor":{"display_login":"ToneLoke"}}