{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/65005956","id":65005956,"diff_hunk":"@@ -0,0 +1,45 @@\n+require_relative 'Plane'\n+require_relative 'Weather'\n+\n+class Airport\n+\n+\tattr_reader :capacity\n+\n+\tdef initialize(capacity = DEFAULT_CAPACITY)\n+\t\t@capacity = capacity\n+\t\t@available_space = capacity\n+\t\t@terminal = []\n+\tend\n+\n+\tdef land(plane)\n+\t\traise \"This plane has already landed!\" if plane.status == \"landed\"\n+\t\traise \"The airport is full!\" if @available_space == 0\n+\t\traise \"Stormy weather, cannot land plane\" if check_weather == \"stormy\"\n+\t\t@terminal << plane\n+\t\t@available_space -= 1\n+\t\tplane.set_landed(self)\n+\t\t\"landed plane: #{plane}\"\n+\tend\n+\n+\tdef takeoff(plane)\n+\t\traise \"This plane is already airborne!\" if plane.status == \"airborne\"\n+\t\traise \"Stormy weather, cannot takeoff\" if check_weather == \"stormy\"\n+\t\traise \"No planes in the terminal\" if @capacity == @available_space\n+\t\t@terminal.delete(plane)\n+\t\t@available_space += 1\n+\t\tplane.set_airborne\n+\t\t\"plane taken off\"\n+\tend\n+\n+\tdef check_weather\n+\t\tweather = Weather.new\n+\t\tweather.status\n+\tend\n+\n+\tprivate","path":"lib/Airport.rb","position":39,"original_position":39,"commit_id":"c539c53446e8d14319eecf9aab6ab2d9d5d3023f","original_commit_id":"c539c53446e8d14319eecf9aab6ab2d9d5d3023f","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Style/AccessModifierIndentation: Indent access modifiers like `private`. (https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected)","created_at":"2016-05-29T14:34:39Z","updated_at":"2016-05-29T14:34:39Z","html_url":"https://github.com/makersacademy/airport_challenge/pull/435#discussion_r65005956","pull_request_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/435","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/65005956"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/435#discussion_r65005956"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/435"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/435","id":71828765,"html_url":"https://github.com/makersacademy/airport_challenge/pull/435","diff_url":"https://github.com/makersacademy/airport_challenge/pull/435.diff","patch_url":"https://github.com/makersacademy/airport_challenge/pull/435.patch","issue_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/435","number":435,"state":"open","locked":false,"title":"airport_challenge pull","user":{"login":"gtormiston","id":17051150,"avatar_url":"https://avatars.githubusercontent.com/u/17051150?v=3","gravatar_id":"","url":"https://api.github.com/users/gtormiston","html_url":"https://github.com/gtormiston","followers_url":"https://api.github.com/users/gtormiston/followers","following_url":"https://api.github.com/users/gtormiston/following{/other_user}","gists_url":"https://api.github.com/users/gtormiston/gists{/gist_id}","starred_url":"https://api.github.com/users/gtormiston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtormiston/subscriptions","organizations_url":"https://api.github.com/users/gtormiston/orgs","repos_url":"https://api.github.com/users/gtormiston/repos","events_url":"https://api.github.com/users/gtormiston/events{/privacy}","received_events_url":"https://api.github.com/users/gtormiston/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-29T14:34:34Z","updated_at":"2016-05-29T14:34:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77e28937f52ea2bf36bb8609543c9c762ccada73","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/435/commits","review_comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/435/comments","review_comment_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/435/comments","statuses_url":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/c539c53446e8d14319eecf9aab6ab2d9d5d3023f","head":{"label":"gtormiston:master","ref":"master","sha":"c539c53446e8d14319eecf9aab6ab2d9d5d3023f","user":{"login":"gtormiston","id":17051150,"avatar_url":"https://avatars.githubusercontent.com/u/17051150?v=3","gravatar_id":"","url":"https://api.github.com/users/gtormiston","html_url":"https://github.com/gtormiston","followers_url":"https://api.github.com/users/gtormiston/followers","following_url":"https://api.github.com/users/gtormiston/following{/other_user}","gists_url":"https://api.github.com/users/gtormiston/gists{/gist_id}","starred_url":"https://api.github.com/users/gtormiston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtormiston/subscriptions","organizations_url":"https://api.github.com/users/gtormiston/orgs","repos_url":"https://api.github.com/users/gtormiston/repos","events_url":"https://api.github.com/users/gtormiston/events{/privacy}","received_events_url":"https://api.github.com/users/gtormiston/received_events","type":"User","site_admin":false},"repo":{"id":59844283,"name":"airport_challenge","full_name":"gtormiston/airport_challenge","owner":{"login":"gtormiston","id":17051150,"avatar_url":"https://avatars.githubusercontent.com/u/17051150?v=3","gravatar_id":"","url":"https://api.github.com/users/gtormiston","html_url":"https://github.com/gtormiston","followers_url":"https://api.github.com/users/gtormiston/followers","following_url":"https://api.github.com/users/gtormiston/following{/other_user}","gists_url":"https://api.github.com/users/gtormiston/gists{/gist_id}","starred_url":"https://api.github.com/users/gtormiston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtormiston/subscriptions","organizations_url":"https://api.github.com/users/gtormiston/orgs","repos_url":"https://api.github.com/users/gtormiston/repos","events_url":"https://api.github.com/users/gtormiston/events{/privacy}","received_events_url":"https://api.github.com/users/gtormiston/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gtormiston/airport_challenge","description":"Fly!","fork":true,"url":"https://api.github.com/repos/gtormiston/airport_challenge","forks_url":"https://api.github.com/repos/gtormiston/airport_challenge/forks","keys_url":"https://api.github.com/repos/gtormiston/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gtormiston/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gtormiston/airport_challenge/teams","hooks_url":"https://api.github.com/repos/gtormiston/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/gtormiston/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/gtormiston/airport_challenge/events","assignees_url":"https://api.github.com/repos/gtormiston/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/gtormiston/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/gtormiston/airport_challenge/tags","blobs_url":"https://api.github.com/repos/gtormiston/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gtormiston/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gtormiston/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/gtormiston/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gtormiston/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/gtormiston/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/gtormiston/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/gtormiston/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/gtormiston/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/gtormiston/airport_challenge/subscription","commits_url":"https://api.github.com/repos/gtormiston/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/gtormiston/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/gtormiston/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/gtormiston/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/gtormiston/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/gtormiston/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gtormiston/airport_challenge/merges","archive_url":"https://api.github.com/repos/gtormiston/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gtormiston/airport_challenge/downloads","issues_url":"https://api.github.com/repos/gtormiston/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/gtormiston/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/gtormiston/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/gtormiston/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gtormiston/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/gtormiston/airport_challenge/releases{/id}","deployments_url":"https://api.github.com/repos/gtormiston/airport_challenge/deployments","created_at":"2016-05-27T15:23:34Z","updated_at":"2016-05-27T15:23:35Z","pushed_at":"2016-05-29T14:32:37Z","git_url":"git://github.com/gtormiston/airport_challenge.git","ssh_url":"git@github.com:gtormiston/airport_challenge.git","clone_url":"https://github.com/gtormiston/airport_challenge.git","svn_url":"https://github.com/gtormiston/airport_challenge","homepage":"","size":113,"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":"makersacademy:master","ref":"master","sha":"54d4a392802580a0c27a49361f7aa15ed693a1a2","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":27074983,"name":"airport_challenge","full_name":"makersacademy/airport_challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/airport_challenge","description":"Fly!","fork":false,"url":"https://api.github.com/repos/makersacademy/airport_challenge","forks_url":"https://api.github.com/repos/makersacademy/airport_challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/airport_challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/airport_challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/airport_challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/airport_challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/airport_challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/airport_challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/airport_challenge/releases{/id}","deployments_url":"https://api.github.com/repos/makersacademy/airport_challenge/deployments","created_at":"2014-11-24T12:30:39Z","updated_at":"2016-05-28T09:49:21Z","pushed_at":"2016-05-29T14:34:34Z","git_url":"git://github.com/makersacademy/airport_challenge.git","ssh_url":"git@github.com:makersacademy/airport_challenge.git","clone_url":"https://github.com/makersacademy/airport_challenge.git","svn_url":"https://github.com/makersacademy/airport_challenge","homepage":"","size":25011,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":377,"mirror_url":null,"open_issues_count":38,"forks":377,"open_issues":38,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/435"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/435"},"issue":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/435"},"comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/435/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/435/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/435/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/c539c53446e8d14319eecf9aab6ab2d9d5d3023f"}}}}
{"actor":{"display_login":"houndci-bot"}}