{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool-examples/museo/pulls/comments/218583305","pull_request_review_id":156555009,"id":218583305,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODU4MzMwNQ==","diff_hunk":"@@ -0,0 +1,69 @@\n+require_relative './photograph'\n+require_relative './artist'\n+class Curator\n+    attr_reader :artists, :photographs\n+  def initialize\n+    @artists = []\n+    @photographs = []\n+  end\n+\n+  def add_photograph(photo)\n+    @photographs << Photograph.new(photo)\n+  end\n+\n+  def add_artist(artist)\n+    @artists << Artist.new(artist)\n+  end\n+\n+  def find_artist_by_id(id)\n+    @artists.find do |artist|\n+      artist.id == id\n+    end\n+  end\n+\n+  def find_photograph_by_id(id)\n+    @photographs.find do |photograph|\n+      photograph.id == id\n+    end\n+  end\n+\n+  def find_photographs_by_artist(artist)\n+    @photographs.find_all do |photograph|\n+      photograph.artist_id == artist.id\n+    end\n+  end\n+\n+  def artists_with_multiple_photographs\n+    ids = photos_by_artist_id.map do |id, photos|\n+        if photos.count > 1\n+          id\n+        end\n+      end.compact\n+    @artists.find_all do |artist|\n+      [artist.id] == ids","path":"lib/curator.rb","position":43,"original_position":43,"commit_id":"95a21573862957f10166cad43435ccce76930570","original_commit_id":"95a21573862957f10166cad43435ccce76930570","user":{"login":"BrianZanti","id":8962411,"node_id":"MDQ6VXNlcjg5NjI0MTE=","avatar_url":"https://avatars1.githubusercontent.com/u/8962411?v=4","gravatar_id":"","url":"https://api.github.com/users/BrianZanti","html_url":"https://github.com/BrianZanti","followers_url":"https://api.github.com/users/BrianZanti/followers","following_url":"https://api.github.com/users/BrianZanti/following{/other_user}","gists_url":"https://api.github.com/users/BrianZanti/gists{/gist_id}","starred_url":"https://api.github.com/users/BrianZanti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrianZanti/subscriptions","organizations_url":"https://api.github.com/users/BrianZanti/orgs","repos_url":"https://api.github.com/users/BrianZanti/repos","events_url":"https://api.github.com/users/BrianZanti/events{/privacy}","received_events_url":"https://api.github.com/users/BrianZanti/received_events","type":"User","site_admin":false},"body":"This will only work when there is only one artist with multiple photographs","created_at":"2018-09-18T20:30:13Z","updated_at":"2018-09-18T20:30:13Z","html_url":"https://github.com/turingschool-examples/museo/pull/13#discussion_r218583305","pull_request_url":"https://api.github.com/repos/turingschool-examples/museo/pulls/13","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/museo/pulls/comments/218583305"},"html":{"href":"https://github.com/turingschool-examples/museo/pull/13#discussion_r218583305"},"pull_request":{"href":"https://api.github.com/repos/turingschool-examples/museo/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool-examples/museo/pulls/13","id":216394476,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2Mzk0NDc2","html_url":"https://github.com/turingschool-examples/museo/pull/13","diff_url":"https://github.com/turingschool-examples/museo/pull/13.diff","patch_url":"https://github.com/turingschool-examples/museo/pull/13.patch","issue_url":"https://api.github.com/repos/turingschool-examples/museo/issues/13","number":13,"state":"open","locked":false,"title":"Nikki HP","user":{"login":"mnhollandplum","id":39295701,"node_id":"MDQ6VXNlcjM5Mjk1NzAx","avatar_url":"https://avatars1.githubusercontent.com/u/39295701?v=4","gravatar_id":"","url":"https://api.github.com/users/mnhollandplum","html_url":"https://github.com/mnhollandplum","followers_url":"https://api.github.com/users/mnhollandplum/followers","following_url":"https://api.github.com/users/mnhollandplum/following{/other_user}","gists_url":"https://api.github.com/users/mnhollandplum/gists{/gist_id}","starred_url":"https://api.github.com/users/mnhollandplum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnhollandplum/subscriptions","organizations_url":"https://api.github.com/users/mnhollandplum/orgs","repos_url":"https://api.github.com/users/mnhollandplum/repos","events_url":"https://api.github.com/users/mnhollandplum/events{/privacy}","received_events_url":"https://api.github.com/users/mnhollandplum/received_events","type":"User","site_admin":false},"body":"Through iteration 3","created_at":"2018-09-18T18:01:29Z","updated_at":"2018-09-18T20:30:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07247c8fabf78ed7110e9cfabaaa0988e4b1884e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool-examples/museo/pulls/13/commits","review_comments_url":"https://api.github.com/repos/turingschool-examples/museo/pulls/13/comments","review_comment_url":"https://api.github.com/repos/turingschool-examples/museo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/turingschool-examples/museo/issues/13/comments","statuses_url":"https://api.github.com/repos/turingschool-examples/museo/statuses/95a21573862957f10166cad43435ccce76930570","head":{"label":"mnhollandplum:master","ref":"master","sha":"95a21573862957f10166cad43435ccce76930570","user":{"login":"mnhollandplum","id":39295701,"node_id":"MDQ6VXNlcjM5Mjk1NzAx","avatar_url":"https://avatars1.githubusercontent.com/u/39295701?v=4","gravatar_id":"","url":"https://api.github.com/users/mnhollandplum","html_url":"https://github.com/mnhollandplum","followers_url":"https://api.github.com/users/mnhollandplum/followers","following_url":"https://api.github.com/users/mnhollandplum/following{/other_user}","gists_url":"https://api.github.com/users/mnhollandplum/gists{/gist_id}","starred_url":"https://api.github.com/users/mnhollandplum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnhollandplum/subscriptions","organizations_url":"https://api.github.com/users/mnhollandplum/orgs","repos_url":"https://api.github.com/users/mnhollandplum/repos","events_url":"https://api.github.com/users/mnhollandplum/events{/privacy}","received_events_url":"https://api.github.com/users/mnhollandplum/received_events","type":"User","site_admin":false},"repo":{"id":149307376,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkzMDczNzY=","name":"museo","full_name":"mnhollandplum/museo","private":false,"owner":{"login":"mnhollandplum","id":39295701,"node_id":"MDQ6VXNlcjM5Mjk1NzAx","avatar_url":"https://avatars1.githubusercontent.com/u/39295701?v=4","gravatar_id":"","url":"https://api.github.com/users/mnhollandplum","html_url":"https://github.com/mnhollandplum","followers_url":"https://api.github.com/users/mnhollandplum/followers","following_url":"https://api.github.com/users/mnhollandplum/following{/other_user}","gists_url":"https://api.github.com/users/mnhollandplum/gists{/gist_id}","starred_url":"https://api.github.com/users/mnhollandplum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnhollandplum/subscriptions","organizations_url":"https://api.github.com/users/mnhollandplum/orgs","repos_url":"https://api.github.com/users/mnhollandplum/repos","events_url":"https://api.github.com/users/mnhollandplum/events{/privacy}","received_events_url":"https://api.github.com/users/mnhollandplum/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mnhollandplum/museo","description":null,"fork":true,"url":"https://api.github.com/repos/mnhollandplum/museo","forks_url":"https://api.github.com/repos/mnhollandplum/museo/forks","keys_url":"https://api.github.com/repos/mnhollandplum/museo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mnhollandplum/museo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mnhollandplum/museo/teams","hooks_url":"https://api.github.com/repos/mnhollandplum/museo/hooks","issue_events_url":"https://api.github.com/repos/mnhollandplum/museo/issues/events{/number}","events_url":"https://api.github.com/repos/mnhollandplum/museo/events","assignees_url":"https://api.github.com/repos/mnhollandplum/museo/assignees{/user}","branches_url":"https://api.github.com/repos/mnhollandplum/museo/branches{/branch}","tags_url":"https://api.github.com/repos/mnhollandplum/museo/tags","blobs_url":"https://api.github.com/repos/mnhollandplum/museo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mnhollandplum/museo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mnhollandplum/museo/git/refs{/sha}","trees_url":"https://api.github.com/repos/mnhollandplum/museo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mnhollandplum/museo/statuses/{sha}","languages_url":"https://api.github.com/repos/mnhollandplum/museo/languages","stargazers_url":"https://api.github.com/repos/mnhollandplum/museo/stargazers","contributors_url":"https://api.github.com/repos/mnhollandplum/museo/contributors","subscribers_url":"https://api.github.com/repos/mnhollandplum/museo/subscribers","subscription_url":"https://api.github.com/repos/mnhollandplum/museo/subscription","commits_url":"https://api.github.com/repos/mnhollandplum/museo/commits{/sha}","git_commits_url":"https://api.github.com/repos/mnhollandplum/museo/git/commits{/sha}","comments_url":"https://api.github.com/repos/mnhollandplum/museo/comments{/number}","issue_comment_url":"https://api.github.com/repos/mnhollandplum/museo/issues/comments{/number}","contents_url":"https://api.github.com/repos/mnhollandplum/museo/contents/{+path}","compare_url":"https://api.github.com/repos/mnhollandplum/museo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mnhollandplum/museo/merges","archive_url":"https://api.github.com/repos/mnhollandplum/museo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mnhollandplum/museo/downloads","issues_url":"https://api.github.com/repos/mnhollandplum/museo/issues{/number}","pulls_url":"https://api.github.com/repos/mnhollandplum/museo/pulls{/number}","milestones_url":"https://api.github.com/repos/mnhollandplum/museo/milestones{/number}","notifications_url":"https://api.github.com/repos/mnhollandplum/museo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mnhollandplum/museo/labels{/name}","releases_url":"https://api.github.com/repos/mnhollandplum/museo/releases{/id}","deployments_url":"https://api.github.com/repos/mnhollandplum/museo/deployments","created_at":"2018-09-18T15:03:53Z","updated_at":"2018-09-18T17:42:21Z","pushed_at":"2018-09-18T17:42:19Z","git_url":"git://github.com/mnhollandplum/museo.git","ssh_url":"git@github.com:mnhollandplum/museo.git","clone_url":"https://github.com/mnhollandplum/museo.git","svn_url":"https://github.com/mnhollandplum/museo","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"turingschool-examples:master","ref":"master","sha":"bc285b065190a2a2e7b2161b8c4d01761a6e4350","user":{"login":"turingschool-examples","id":8518346,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1MTgzNDY=","avatar_url":"https://avatars3.githubusercontent.com/u/8518346?v=4","gravatar_id":"","url":"https://api.github.com/users/turingschool-examples","html_url":"https://github.com/turingschool-examples","followers_url":"https://api.github.com/users/turingschool-examples/followers","following_url":"https://api.github.com/users/turingschool-examples/following{/other_user}","gists_url":"https://api.github.com/users/turingschool-examples/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool-examples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool-examples/subscriptions","organizations_url":"https://api.github.com/users/turingschool-examples/orgs","repos_url":"https://api.github.com/users/turingschool-examples/repos","events_url":"https://api.github.com/users/turingschool-examples/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool-examples/received_events","type":"Organization","site_admin":false},"repo":{"id":149304191,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkzMDQxOTE=","name":"museo","full_name":"turingschool-examples/museo","private":false,"owner":{"login":"turingschool-examples","id":8518346,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1MTgzNDY=","avatar_url":"https://avatars3.githubusercontent.com/u/8518346?v=4","gravatar_id":"","url":"https://api.github.com/users/turingschool-examples","html_url":"https://github.com/turingschool-examples","followers_url":"https://api.github.com/users/turingschool-examples/followers","following_url":"https://api.github.com/users/turingschool-examples/following{/other_user}","gists_url":"https://api.github.com/users/turingschool-examples/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool-examples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool-examples/subscriptions","organizations_url":"https://api.github.com/users/turingschool-examples/orgs","repos_url":"https://api.github.com/users/turingschool-examples/repos","events_url":"https://api.github.com/users/turingschool-examples/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool-examples/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/turingschool-examples/museo","description":null,"fork":false,"url":"https://api.github.com/repos/turingschool-examples/museo","forks_url":"https://api.github.com/repos/turingschool-examples/museo/forks","keys_url":"https://api.github.com/repos/turingschool-examples/museo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turingschool-examples/museo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turingschool-examples/museo/teams","hooks_url":"https://api.github.com/repos/turingschool-examples/museo/hooks","issue_events_url":"https://api.github.com/repos/turingschool-examples/museo/issues/events{/number}","events_url":"https://api.github.com/repos/turingschool-examples/museo/events","assignees_url":"https://api.github.com/repos/turingschool-examples/museo/assignees{/user}","branches_url":"https://api.github.com/repos/turingschool-examples/museo/branches{/branch}","tags_url":"https://api.github.com/repos/turingschool-examples/museo/tags","blobs_url":"https://api.github.com/repos/turingschool-examples/museo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turingschool-examples/museo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turingschool-examples/museo/git/refs{/sha}","trees_url":"https://api.github.com/repos/turingschool-examples/museo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turingschool-examples/museo/statuses/{sha}","languages_url":"https://api.github.com/repos/turingschool-examples/museo/languages","stargazers_url":"https://api.github.com/repos/turingschool-examples/museo/stargazers","contributors_url":"https://api.github.com/repos/turingschool-examples/museo/contributors","subscribers_url":"https://api.github.com/repos/turingschool-examples/museo/subscribers","subscription_url":"https://api.github.com/repos/turingschool-examples/museo/subscription","commits_url":"https://api.github.com/repos/turingschool-examples/museo/commits{/sha}","git_commits_url":"https://api.github.com/repos/turingschool-examples/museo/git/commits{/sha}","comments_url":"https://api.github.com/repos/turingschool-examples/museo/comments{/number}","issue_comment_url":"https://api.github.com/repos/turingschool-examples/museo/issues/comments{/number}","contents_url":"https://api.github.com/repos/turingschool-examples/museo/contents/{+path}","compare_url":"https://api.github.com/repos/turingschool-examples/museo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turingschool-examples/museo/merges","archive_url":"https://api.github.com/repos/turingschool-examples/museo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turingschool-examples/museo/downloads","issues_url":"https://api.github.com/repos/turingschool-examples/museo/issues{/number}","pulls_url":"https://api.github.com/repos/turingschool-examples/museo/pulls{/number}","milestones_url":"https://api.github.com/repos/turingschool-examples/museo/milestones{/number}","notifications_url":"https://api.github.com/repos/turingschool-examples/museo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turingschool-examples/museo/labels{/name}","releases_url":"https://api.github.com/repos/turingschool-examples/museo/releases{/id}","deployments_url":"https://api.github.com/repos/turingschool-examples/museo/deployments","created_at":"2018-09-18T14:42:31Z","updated_at":"2018-09-18T14:46:50Z","pushed_at":"2018-09-18T20:26:22Z","git_url":"git://github.com/turingschool-examples/museo.git","ssh_url":"git@github.com:turingschool-examples/museo.git","clone_url":"https://github.com/turingschool-examples/museo.git","svn_url":"https://github.com/turingschool-examples/museo","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":28,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/museo/pulls/13"},"html":{"href":"https://github.com/turingschool-examples/museo/pull/13"},"issue":{"href":"https://api.github.com/repos/turingschool-examples/museo/issues/13"},"comments":{"href":"https://api.github.com/repos/turingschool-examples/museo/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool-examples/museo/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/turingschool-examples/museo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/turingschool-examples/museo/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool-examples/museo/statuses/95a21573862957f10166cad43435ccce76930570"}},"author_association":"NONE"}}
{"actor":{"display_login":"BrianZanti"}}