{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls/comments/215621030","pull_request_review_id":152924477,"id":215621030,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTYyMTAzMA==","diff_hunk":"@@ -0,0 +1,52 @@\n+## dock.rb\n+\n+require 'pry'\n+require './lib/boat'\n+require './lib/rental'\n+\n+class Dock < Boat\n+\n+  attr_reader :name,\n+              :max_rental_time,\n+              :revenue,\n+              :rented_boats\n+\n+  def initialize(name, max_rental_time)\n+    @name = name\n+    @max_rental_time = max_rental_time\n+    @revenue = 0\n+    @rented_boats = []\n+  end\n+\n+  def rent(boat, renter)\n+    @rented_boats << boat\n+    boat.rented = true\n+    boat.renter = renter\n+  end\n+\n+  def log_hour\n+    @rented_boats.each do |boat|\n+      if boat.hours_rented < max_rental_time\n+        boat.add_hour\n+      end\n+    end\n+  end\n+\n+  def return(boat)\n+    boat.rented = false\n+  end\n+\n+  def revenue\n+    @rented_boats.map do |boat|\n+      boat.hours_rented * boat.price_per_hour\n+    end.sum\n+  end","path":"lib/dock.rb","position":43,"original_position":43,"commit_id":"a1d1d99ad86b7ae963c59c590cdb19ce536ed605","original_commit_id":"a1d1d99ad86b7ae963c59c590cdb19ce536ed605","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":"Great job, Dan!","created_at":"2018-09-06T13:18:40Z","updated_at":"2018-09-06T13:18:40Z","html_url":"https://github.com/turingschool-examples/boat_rental/pull/14#discussion_r215621030","pull_request_url":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls/14","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls/comments/215621030"},"html":{"href":"https://github.com/turingschool-examples/boat_rental/pull/14#discussion_r215621030"},"pull_request":{"href":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls/14","id":213426146,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzNDI2MTQ2","html_url":"https://github.com/turingschool-examples/boat_rental/pull/14","diff_url":"https://github.com/turingschool-examples/boat_rental/pull/14.diff","patch_url":"https://github.com/turingschool-examples/boat_rental/pull/14.patch","issue_url":"https://api.github.com/repos/turingschool-examples/boat_rental/issues/14","number":14,"state":"closed","locked":false,"title":"Dan Hutchinson Independent Challenge Week 4","user":{"login":"DanHutch","id":39834977,"node_id":"MDQ6VXNlcjM5ODM0OTc3","avatar_url":"https://avatars1.githubusercontent.com/u/39834977?v=4","gravatar_id":"","url":"https://api.github.com/users/DanHutch","html_url":"https://github.com/DanHutch","followers_url":"https://api.github.com/users/DanHutch/followers","following_url":"https://api.github.com/users/DanHutch/following{/other_user}","gists_url":"https://api.github.com/users/DanHutch/gists{/gist_id}","starred_url":"https://api.github.com/users/DanHutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanHutch/subscriptions","organizations_url":"https://api.github.com/users/DanHutch/orgs","repos_url":"https://api.github.com/users/DanHutch/repos","events_url":"https://api.github.com/users/DanHutch/events{/privacy}","received_events_url":"https://api.github.com/users/DanHutch/received_events","type":"User","site_admin":false},"body":"Dan Hutchinson's independent challenge for week 4","created_at":"2018-09-05T20:59:47Z","updated_at":"2018-09-06T13:18:40Z","closed_at":"2018-09-06T13:11:06Z","merged_at":null,"merge_commit_sha":"7fedc0e1353e417086f1c048a7e6af720d8bb498","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls/14/commits","review_comments_url":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls/14/comments","review_comment_url":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls/comments{/number}","comments_url":"https://api.github.com/repos/turingschool-examples/boat_rental/issues/14/comments","statuses_url":"https://api.github.com/repos/turingschool-examples/boat_rental/statuses/a1d1d99ad86b7ae963c59c590cdb19ce536ed605","head":{"label":"DanHutch:master","ref":"master","sha":"a1d1d99ad86b7ae963c59c590cdb19ce536ed605","user":{"login":"DanHutch","id":39834977,"node_id":"MDQ6VXNlcjM5ODM0OTc3","avatar_url":"https://avatars1.githubusercontent.com/u/39834977?v=4","gravatar_id":"","url":"https://api.github.com/users/DanHutch","html_url":"https://github.com/DanHutch","followers_url":"https://api.github.com/users/DanHutch/followers","following_url":"https://api.github.com/users/DanHutch/following{/other_user}","gists_url":"https://api.github.com/users/DanHutch/gists{/gist_id}","starred_url":"https://api.github.com/users/DanHutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanHutch/subscriptions","organizations_url":"https://api.github.com/users/DanHutch/orgs","repos_url":"https://api.github.com/users/DanHutch/repos","events_url":"https://api.github.com/users/DanHutch/events{/privacy}","received_events_url":"https://api.github.com/users/DanHutch/received_events","type":"User","site_admin":false},"repo":{"id":147566261,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc1NjYyNjE=","name":"boat_rental","full_name":"DanHutch/boat_rental","owner":{"login":"DanHutch","id":39834977,"node_id":"MDQ6VXNlcjM5ODM0OTc3","avatar_url":"https://avatars1.githubusercontent.com/u/39834977?v=4","gravatar_id":"","url":"https://api.github.com/users/DanHutch","html_url":"https://github.com/DanHutch","followers_url":"https://api.github.com/users/DanHutch/followers","following_url":"https://api.github.com/users/DanHutch/following{/other_user}","gists_url":"https://api.github.com/users/DanHutch/gists{/gist_id}","starred_url":"https://api.github.com/users/DanHutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanHutch/subscriptions","organizations_url":"https://api.github.com/users/DanHutch/orgs","repos_url":"https://api.github.com/users/DanHutch/repos","events_url":"https://api.github.com/users/DanHutch/events{/privacy}","received_events_url":"https://api.github.com/users/DanHutch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DanHutch/boat_rental","description":null,"fork":true,"url":"https://api.github.com/repos/DanHutch/boat_rental","forks_url":"https://api.github.com/repos/DanHutch/boat_rental/forks","keys_url":"https://api.github.com/repos/DanHutch/boat_rental/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DanHutch/boat_rental/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DanHutch/boat_rental/teams","hooks_url":"https://api.github.com/repos/DanHutch/boat_rental/hooks","issue_events_url":"https://api.github.com/repos/DanHutch/boat_rental/issues/events{/number}","events_url":"https://api.github.com/repos/DanHutch/boat_rental/events","assignees_url":"https://api.github.com/repos/DanHutch/boat_rental/assignees{/user}","branches_url":"https://api.github.com/repos/DanHutch/boat_rental/branches{/branch}","tags_url":"https://api.github.com/repos/DanHutch/boat_rental/tags","blobs_url":"https://api.github.com/repos/DanHutch/boat_rental/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DanHutch/boat_rental/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DanHutch/boat_rental/git/refs{/sha}","trees_url":"https://api.github.com/repos/DanHutch/boat_rental/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DanHutch/boat_rental/statuses/{sha}","languages_url":"https://api.github.com/repos/DanHutch/boat_rental/languages","stargazers_url":"https://api.github.com/repos/DanHutch/boat_rental/stargazers","contributors_url":"https://api.github.com/repos/DanHutch/boat_rental/contributors","subscribers_url":"https://api.github.com/repos/DanHutch/boat_rental/subscribers","subscription_url":"https://api.github.com/repos/DanHutch/boat_rental/subscription","commits_url":"https://api.github.com/repos/DanHutch/boat_rental/commits{/sha}","git_commits_url":"https://api.github.com/repos/DanHutch/boat_rental/git/commits{/sha}","comments_url":"https://api.github.com/repos/DanHutch/boat_rental/comments{/number}","issue_comment_url":"https://api.github.com/repos/DanHutch/boat_rental/issues/comments{/number}","contents_url":"https://api.github.com/repos/DanHutch/boat_rental/contents/{+path}","compare_url":"https://api.github.com/repos/DanHutch/boat_rental/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DanHutch/boat_rental/merges","archive_url":"https://api.github.com/repos/DanHutch/boat_rental/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DanHutch/boat_rental/downloads","issues_url":"https://api.github.com/repos/DanHutch/boat_rental/issues{/number}","pulls_url":"https://api.github.com/repos/DanHutch/boat_rental/pulls{/number}","milestones_url":"https://api.github.com/repos/DanHutch/boat_rental/milestones{/number}","notifications_url":"https://api.github.com/repos/DanHutch/boat_rental/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DanHutch/boat_rental/labels{/name}","releases_url":"https://api.github.com/repos/DanHutch/boat_rental/releases{/id}","deployments_url":"https://api.github.com/repos/DanHutch/boat_rental/deployments","created_at":"2018-09-05T19:03:09Z","updated_at":"2018-09-05T20:59:14Z","pushed_at":"2018-09-05T20:59:15Z","git_url":"git://github.com/DanHutch/boat_rental.git","ssh_url":"git@github.com:DanHutch/boat_rental.git","clone_url":"https://github.com/DanHutch/boat_rental.git","svn_url":"https://github.com/DanHutch/boat_rental","homepage":null,"size":10,"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":"eace2a45001cba4e157ddd9cc22218a51e7626e9","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":147561970,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc1NjE5NzA=","name":"boat_rental","full_name":"turingschool-examples/boat_rental","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},"private":false,"html_url":"https://github.com/turingschool-examples/boat_rental","description":null,"fork":false,"url":"https://api.github.com/repos/turingschool-examples/boat_rental","forks_url":"https://api.github.com/repos/turingschool-examples/boat_rental/forks","keys_url":"https://api.github.com/repos/turingschool-examples/boat_rental/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turingschool-examples/boat_rental/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turingschool-examples/boat_rental/teams","hooks_url":"https://api.github.com/repos/turingschool-examples/boat_rental/hooks","issue_events_url":"https://api.github.com/repos/turingschool-examples/boat_rental/issues/events{/number}","events_url":"https://api.github.com/repos/turingschool-examples/boat_rental/events","assignees_url":"https://api.github.com/repos/turingschool-examples/boat_rental/assignees{/user}","branches_url":"https://api.github.com/repos/turingschool-examples/boat_rental/branches{/branch}","tags_url":"https://api.github.com/repos/turingschool-examples/boat_rental/tags","blobs_url":"https://api.github.com/repos/turingschool-examples/boat_rental/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turingschool-examples/boat_rental/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turingschool-examples/boat_rental/git/refs{/sha}","trees_url":"https://api.github.com/repos/turingschool-examples/boat_rental/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turingschool-examples/boat_rental/statuses/{sha}","languages_url":"https://api.github.com/repos/turingschool-examples/boat_rental/languages","stargazers_url":"https://api.github.com/repos/turingschool-examples/boat_rental/stargazers","contributors_url":"https://api.github.com/repos/turingschool-examples/boat_rental/contributors","subscribers_url":"https://api.github.com/repos/turingschool-examples/boat_rental/subscribers","subscription_url":"https://api.github.com/repos/turingschool-examples/boat_rental/subscription","commits_url":"https://api.github.com/repos/turingschool-examples/boat_rental/commits{/sha}","git_commits_url":"https://api.github.com/repos/turingschool-examples/boat_rental/git/commits{/sha}","comments_url":"https://api.github.com/repos/turingschool-examples/boat_rental/comments{/number}","issue_comment_url":"https://api.github.com/repos/turingschool-examples/boat_rental/issues/comments{/number}","contents_url":"https://api.github.com/repos/turingschool-examples/boat_rental/contents/{+path}","compare_url":"https://api.github.com/repos/turingschool-examples/boat_rental/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turingschool-examples/boat_rental/merges","archive_url":"https://api.github.com/repos/turingschool-examples/boat_rental/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turingschool-examples/boat_rental/downloads","issues_url":"https://api.github.com/repos/turingschool-examples/boat_rental/issues{/number}","pulls_url":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls{/number}","milestones_url":"https://api.github.com/repos/turingschool-examples/boat_rental/milestones{/number}","notifications_url":"https://api.github.com/repos/turingschool-examples/boat_rental/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turingschool-examples/boat_rental/labels{/name}","releases_url":"https://api.github.com/repos/turingschool-examples/boat_rental/releases{/id}","deployments_url":"https://api.github.com/repos/turingschool-examples/boat_rental/deployments","created_at":"2018-09-05T18:26:33Z","updated_at":"2018-09-06T00:36:24Z","pushed_at":"2018-09-06T00:36:20Z","git_url":"git://github.com/turingschool-examples/boat_rental.git","ssh_url":"git@github.com:turingschool-examples/boat_rental.git","clone_url":"https://github.com/turingschool-examples/boat_rental.git","svn_url":"https://github.com/turingschool-examples/boat_rental","homepage":null,"size":3,"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":29,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":29,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls/14"},"html":{"href":"https://github.com/turingschool-examples/boat_rental/pull/14"},"issue":{"href":"https://api.github.com/repos/turingschool-examples/boat_rental/issues/14"},"comments":{"href":"https://api.github.com/repos/turingschool-examples/boat_rental/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/turingschool-examples/boat_rental/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool-examples/boat_rental/statuses/a1d1d99ad86b7ae963c59c590cdb19ce536ed605"}},"author_association":"NONE"}}
{"actor":{"display_login":"BrianZanti"}}