{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool-examples/museum/pulls/comments/177933144","pull_request_review_id":107901576,"id":177933144,"diff_hunk":"@@ -0,0 +1,26 @@\n+require './lib/patron.rb'\n+require 'pry'\n+\n+class Museum\n+  attr_reader :name,\n+              :exhibits,\n+              :revenue\n+\n+  def initialize(name)\n+    @name = name\n+    @exhibits = {}\n+    @revenue = 0\n+  end\n+\n+  def add_exhibit(new_exhibit, cost)\n+    @exhibits.update Hash[new_exhibit, cost]\n+  end\n+\n+  def admit(patron)\n+    @revenue += 10\n+\n+    if @exhibits.include?(@interests.map {|interest| interest.to_s})","path":"lib/museum.rb","position":22,"original_position":22,"commit_id":"82d26eceb7e6f568f180f1b122d82ee4aa8c0cb4","original_commit_id":"82d26eceb7e6f568f180f1b122d82ee4aa8c0cb4","user":{"login":"BrianZanti","id":8962411,"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":"@interests is an attribute of the Patron class, not the Museum class. if you want to get the patron's attributes, you need to do patron.interests","created_at":"2018-03-29T01:25:29Z","updated_at":"2018-03-29T01:25:29Z","html_url":"https://github.com/turingschool-examples/museum/pull/22#discussion_r177933144","pull_request_url":"https://api.github.com/repos/turingschool-examples/museum/pulls/22","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/museum/pulls/comments/177933144"},"html":{"href":"https://github.com/turingschool-examples/museum/pull/22#discussion_r177933144"},"pull_request":{"href":"https://api.github.com/repos/turingschool-examples/museum/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool-examples/museum/pulls/22","id":178103165,"html_url":"https://github.com/turingschool-examples/museum/pull/22","diff_url":"https://github.com/turingschool-examples/museum/pull/22.diff","patch_url":"https://github.com/turingschool-examples/museum/pull/22.patch","issue_url":"https://api.github.com/repos/turingschool-examples/museum/issues/22","number":22,"state":"closed","locked":false,"title":"Independent timed exercise #2","user":{"login":"colehart","id":36777482,"avatar_url":"https://avatars0.githubusercontent.com/u/36777482?v=4","gravatar_id":"","url":"https://api.github.com/users/colehart","html_url":"https://github.com/colehart","followers_url":"https://api.github.com/users/colehart/followers","following_url":"https://api.github.com/users/colehart/following{/other_user}","gists_url":"https://api.github.com/users/colehart/gists{/gist_id}","starred_url":"https://api.github.com/users/colehart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colehart/subscriptions","organizations_url":"https://api.github.com/users/colehart/orgs","repos_url":"https://api.github.com/users/colehart/repos","events_url":"https://api.github.com/users/colehart/events{/privacy}","received_events_url":"https://api.github.com/users/colehart/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-28T17:02:48Z","updated_at":"2018-03-29T01:25:29Z","closed_at":"2018-03-29T01:01:34Z","merged_at":null,"merge_commit_sha":"b2b6b15dfb060ffc20c32cecdab48b33fb5f84ca","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool-examples/museum/pulls/22/commits","review_comments_url":"https://api.github.com/repos/turingschool-examples/museum/pulls/22/comments","review_comment_url":"https://api.github.com/repos/turingschool-examples/museum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/turingschool-examples/museum/issues/22/comments","statuses_url":"https://api.github.com/repos/turingschool-examples/museum/statuses/82d26eceb7e6f568f180f1b122d82ee4aa8c0cb4","head":{"label":"colehart:master","ref":"master","sha":"82d26eceb7e6f568f180f1b122d82ee4aa8c0cb4","user":{"login":"colehart","id":36777482,"avatar_url":"https://avatars0.githubusercontent.com/u/36777482?v=4","gravatar_id":"","url":"https://api.github.com/users/colehart","html_url":"https://github.com/colehart","followers_url":"https://api.github.com/users/colehart/followers","following_url":"https://api.github.com/users/colehart/following{/other_user}","gists_url":"https://api.github.com/users/colehart/gists{/gist_id}","starred_url":"https://api.github.com/users/colehart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colehart/subscriptions","organizations_url":"https://api.github.com/users/colehart/orgs","repos_url":"https://api.github.com/users/colehart/repos","events_url":"https://api.github.com/users/colehart/events{/privacy}","received_events_url":"https://api.github.com/users/colehart/received_events","type":"User","site_admin":false},"repo":{"id":127157444,"name":"museum","full_name":"colehart/museum","owner":{"login":"colehart","id":36777482,"avatar_url":"https://avatars0.githubusercontent.com/u/36777482?v=4","gravatar_id":"","url":"https://api.github.com/users/colehart","html_url":"https://github.com/colehart","followers_url":"https://api.github.com/users/colehart/followers","following_url":"https://api.github.com/users/colehart/following{/other_user}","gists_url":"https://api.github.com/users/colehart/gists{/gist_id}","starred_url":"https://api.github.com/users/colehart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colehart/subscriptions","organizations_url":"https://api.github.com/users/colehart/orgs","repos_url":"https://api.github.com/users/colehart/repos","events_url":"https://api.github.com/users/colehart/events{/privacy}","received_events_url":"https://api.github.com/users/colehart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/colehart/museum","description":null,"fork":true,"url":"https://api.github.com/repos/colehart/museum","forks_url":"https://api.github.com/repos/colehart/museum/forks","keys_url":"https://api.github.com/repos/colehart/museum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/colehart/museum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/colehart/museum/teams","hooks_url":"https://api.github.com/repos/colehart/museum/hooks","issue_events_url":"https://api.github.com/repos/colehart/museum/issues/events{/number}","events_url":"https://api.github.com/repos/colehart/museum/events","assignees_url":"https://api.github.com/repos/colehart/museum/assignees{/user}","branches_url":"https://api.github.com/repos/colehart/museum/branches{/branch}","tags_url":"https://api.github.com/repos/colehart/museum/tags","blobs_url":"https://api.github.com/repos/colehart/museum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/colehart/museum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/colehart/museum/git/refs{/sha}","trees_url":"https://api.github.com/repos/colehart/museum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/colehart/museum/statuses/{sha}","languages_url":"https://api.github.com/repos/colehart/museum/languages","stargazers_url":"https://api.github.com/repos/colehart/museum/stargazers","contributors_url":"https://api.github.com/repos/colehart/museum/contributors","subscribers_url":"https://api.github.com/repos/colehart/museum/subscribers","subscription_url":"https://api.github.com/repos/colehart/museum/subscription","commits_url":"https://api.github.com/repos/colehart/museum/commits{/sha}","git_commits_url":"https://api.github.com/repos/colehart/museum/git/commits{/sha}","comments_url":"https://api.github.com/repos/colehart/museum/comments{/number}","issue_comment_url":"https://api.github.com/repos/colehart/museum/issues/comments{/number}","contents_url":"https://api.github.com/repos/colehart/museum/contents/{+path}","compare_url":"https://api.github.com/repos/colehart/museum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/colehart/museum/merges","archive_url":"https://api.github.com/repos/colehart/museum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/colehart/museum/downloads","issues_url":"https://api.github.com/repos/colehart/museum/issues{/number}","pulls_url":"https://api.github.com/repos/colehart/museum/pulls{/number}","milestones_url":"https://api.github.com/repos/colehart/museum/milestones{/number}","notifications_url":"https://api.github.com/repos/colehart/museum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/colehart/museum/labels{/name}","releases_url":"https://api.github.com/repos/colehart/museum/releases{/id}","deployments_url":"https://api.github.com/repos/colehart/museum/deployments","created_at":"2018-03-28T15:02:33Z","updated_at":"2018-03-28T17:10:16Z","pushed_at":"2018-03-28T17:10:15Z","git_url":"git://github.com/colehart/museum.git","ssh_url":"git@github.com:colehart/museum.git","clone_url":"https://github.com/colehart/museum.git","svn_url":"https://github.com/colehart/museum","homepage":null,"size":9,"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":"10805c1343abac09af45e3d13232ea57a8a5bf18","user":{"login":"turingschool-examples","id":8518346,"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":127154371,"name":"museum","full_name":"turingschool-examples/museum","owner":{"login":"turingschool-examples","id":8518346,"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},"private":false,"html_url":"https://github.com/turingschool-examples/museum","description":null,"fork":false,"url":"https://api.github.com/repos/turingschool-examples/museum","forks_url":"https://api.github.com/repos/turingschool-examples/museum/forks","keys_url":"https://api.github.com/repos/turingschool-examples/museum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turingschool-examples/museum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turingschool-examples/museum/teams","hooks_url":"https://api.github.com/repos/turingschool-examples/museum/hooks","issue_events_url":"https://api.github.com/repos/turingschool-examples/museum/issues/events{/number}","events_url":"https://api.github.com/repos/turingschool-examples/museum/events","assignees_url":"https://api.github.com/repos/turingschool-examples/museum/assignees{/user}","branches_url":"https://api.github.com/repos/turingschool-examples/museum/branches{/branch}","tags_url":"https://api.github.com/repos/turingschool-examples/museum/tags","blobs_url":"https://api.github.com/repos/turingschool-examples/museum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turingschool-examples/museum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turingschool-examples/museum/git/refs{/sha}","trees_url":"https://api.github.com/repos/turingschool-examples/museum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turingschool-examples/museum/statuses/{sha}","languages_url":"https://api.github.com/repos/turingschool-examples/museum/languages","stargazers_url":"https://api.github.com/repos/turingschool-examples/museum/stargazers","contributors_url":"https://api.github.com/repos/turingschool-examples/museum/contributors","subscribers_url":"https://api.github.com/repos/turingschool-examples/museum/subscribers","subscription_url":"https://api.github.com/repos/turingschool-examples/museum/subscription","commits_url":"https://api.github.com/repos/turingschool-examples/museum/commits{/sha}","git_commits_url":"https://api.github.com/repos/turingschool-examples/museum/git/commits{/sha}","comments_url":"https://api.github.com/repos/turingschool-examples/museum/comments{/number}","issue_comment_url":"https://api.github.com/repos/turingschool-examples/museum/issues/comments{/number}","contents_url":"https://api.github.com/repos/turingschool-examples/museum/contents/{+path}","compare_url":"https://api.github.com/repos/turingschool-examples/museum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turingschool-examples/museum/merges","archive_url":"https://api.github.com/repos/turingschool-examples/museum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turingschool-examples/museum/downloads","issues_url":"https://api.github.com/repos/turingschool-examples/museum/issues{/number}","pulls_url":"https://api.github.com/repos/turingschool-examples/museum/pulls{/number}","milestones_url":"https://api.github.com/repos/turingschool-examples/museum/milestones{/number}","notifications_url":"https://api.github.com/repos/turingschool-examples/museum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turingschool-examples/museum/labels{/name}","releases_url":"https://api.github.com/repos/turingschool-examples/museum/releases{/id}","deployments_url":"https://api.github.com/repos/turingschool-examples/museum/deployments","created_at":"2018-03-28T14:39:35Z","updated_at":"2018-03-28T15:01:03Z","pushed_at":"2018-03-28T18:05:20Z","git_url":"git://github.com/turingschool-examples/museum.git","ssh_url":"git@github.com:turingschool-examples/museum.git","clone_url":"https://github.com/turingschool-examples/museum.git","svn_url":"https://github.com/turingschool-examples/museum","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"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":12,"license":null,"forks":28,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/museum/pulls/22"},"html":{"href":"https://github.com/turingschool-examples/museum/pull/22"},"issue":{"href":"https://api.github.com/repos/turingschool-examples/museum/issues/22"},"comments":{"href":"https://api.github.com/repos/turingschool-examples/museum/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool-examples/museum/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/turingschool-examples/museum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/turingschool-examples/museum/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool-examples/museum/statuses/82d26eceb7e6f568f180f1b122d82ee4aa8c0cb4"}},"author_association":"NONE"}}
{"actor":{"display_login":"BrianZanti"}}