{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/75580004","id":75580004,"diff_hunk":"@@ -0,0 +1,66 @@\n+# Creates an airport object which can land/takeoff plane objects.\n+class Airport\n+  require_relative 'weather'\n+  require_relative 'plane'\n+  DEFAULT_CAPACITY = 6\n+\n+  def initialize(options = {})\n+    @capacity = options.fetch(:capacity, DEFAULT_CAPACITY)\n+    @weather = options.fetch(:weather_system, Weather.new)\n+    @landed_planes = []\n+  end\n+\n+  def land(plane)\n+    pre_landing_checks(plane)\n+    plane.land\n+    add_plane_to_airport(plane)\n+    puts \"The plane has landed safely at the airport.\"\n+  end\n+\n+  def takeoff(plane)\n+    pre_takeoff_checks(plane)\n+    plane.takeoff\n+    remove_plane_from_airport(plane)\n+    puts \"The plane has successfully taken off.\"\n+  end\n+\n+  private\n+\n+  attr_reader :capacity, :weather, :landed_planes\n+\n+  def pre_landing_checks(plane)\n+    raise \"That plane is at another airport.\" if plane_landed?(plane)\n+    raise 'Airport is full, the plane has diverted.' if airport_full?","path":"lib/airport.rb","position":33,"original_position":33,"commit_id":"5c99f5ad67a1bde0303d3f9d8758171577615e78","original_commit_id":"5c99f5ad67a1bde0303d3f9d8758171577615e78","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/SignalException: Use `fail` instead of `raise` to signal exceptions. (https://github.com/bbatsov/ruby-style-guide#fail-method)","created_at":"2016-08-20T15:01:38Z","updated_at":"2016-08-20T15:01:38Z","html_url":"https://github.com/makersacademy/airport_challenge/pull/500#discussion_r75580004","pull_request_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/500","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/75580004"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/500#discussion_r75580004"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/500"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/500","id":82080707,"html_url":"https://github.com/makersacademy/airport_challenge/pull/500","diff_url":"https://github.com/makersacademy/airport_challenge/pull/500.diff","patch_url":"https://github.com/makersacademy/airport_challenge/pull/500.patch","issue_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/500","number":500,"state":"open","locked":false,"title":"Initial Pull Request","user":{"login":"TomStuart92","id":19717495,"avatar_url":"https://avatars.githubusercontent.com/u/19717495?v=3","gravatar_id":"","url":"https://api.github.com/users/TomStuart92","html_url":"https://github.com/TomStuart92","followers_url":"https://api.github.com/users/TomStuart92/followers","following_url":"https://api.github.com/users/TomStuart92/following{/other_user}","gists_url":"https://api.github.com/users/TomStuart92/gists{/gist_id}","starred_url":"https://api.github.com/users/TomStuart92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomStuart92/subscriptions","organizations_url":"https://api.github.com/users/TomStuart92/orgs","repos_url":"https://api.github.com/users/TomStuart92/repos","events_url":"https://api.github.com/users/TomStuart92/events{/privacy}","received_events_url":"https://api.github.com/users/TomStuart92/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-20T15:01:33Z","updated_at":"2016-08-20T15:01:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"310d4cadf2d4088a061e6dcd3d88860ee55ff810","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/500/commits","review_comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/500/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/500/comments","statuses_url":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/5c99f5ad67a1bde0303d3f9d8758171577615e78","head":{"label":"TomStuart92:master","ref":"master","sha":"5c99f5ad67a1bde0303d3f9d8758171577615e78","user":{"login":"TomStuart92","id":19717495,"avatar_url":"https://avatars.githubusercontent.com/u/19717495?v=3","gravatar_id":"","url":"https://api.github.com/users/TomStuart92","html_url":"https://github.com/TomStuart92","followers_url":"https://api.github.com/users/TomStuart92/followers","following_url":"https://api.github.com/users/TomStuart92/following{/other_user}","gists_url":"https://api.github.com/users/TomStuart92/gists{/gist_id}","starred_url":"https://api.github.com/users/TomStuart92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomStuart92/subscriptions","organizations_url":"https://api.github.com/users/TomStuart92/orgs","repos_url":"https://api.github.com/users/TomStuart92/repos","events_url":"https://api.github.com/users/TomStuart92/events{/privacy}","received_events_url":"https://api.github.com/users/TomStuart92/received_events","type":"User","site_admin":false},"repo":{"id":66140203,"name":"airport_challenge","full_name":"TomStuart92/airport_challenge","owner":{"login":"TomStuart92","id":19717495,"avatar_url":"https://avatars.githubusercontent.com/u/19717495?v=3","gravatar_id":"","url":"https://api.github.com/users/TomStuart92","html_url":"https://github.com/TomStuart92","followers_url":"https://api.github.com/users/TomStuart92/followers","following_url":"https://api.github.com/users/TomStuart92/following{/other_user}","gists_url":"https://api.github.com/users/TomStuart92/gists{/gist_id}","starred_url":"https://api.github.com/users/TomStuart92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomStuart92/subscriptions","organizations_url":"https://api.github.com/users/TomStuart92/orgs","repos_url":"https://api.github.com/users/TomStuart92/repos","events_url":"https://api.github.com/users/TomStuart92/events{/privacy}","received_events_url":"https://api.github.com/users/TomStuart92/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TomStuart92/airport_challenge","description":"Fly!","fork":true,"url":"https://api.github.com/repos/TomStuart92/airport_challenge","forks_url":"https://api.github.com/repos/TomStuart92/airport_challenge/forks","keys_url":"https://api.github.com/repos/TomStuart92/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TomStuart92/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TomStuart92/airport_challenge/teams","hooks_url":"https://api.github.com/repos/TomStuart92/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/TomStuart92/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/TomStuart92/airport_challenge/events","assignees_url":"https://api.github.com/repos/TomStuart92/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/TomStuart92/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/TomStuart92/airport_challenge/tags","blobs_url":"https://api.github.com/repos/TomStuart92/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TomStuart92/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TomStuart92/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/TomStuart92/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TomStuart92/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/TomStuart92/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/TomStuart92/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/TomStuart92/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/TomStuart92/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/TomStuart92/airport_challenge/subscription","commits_url":"https://api.github.com/repos/TomStuart92/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/TomStuart92/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/TomStuart92/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/TomStuart92/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/TomStuart92/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/TomStuart92/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TomStuart92/airport_challenge/merges","archive_url":"https://api.github.com/repos/TomStuart92/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TomStuart92/airport_challenge/downloads","issues_url":"https://api.github.com/repos/TomStuart92/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/TomStuart92/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/TomStuart92/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/TomStuart92/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TomStuart92/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/TomStuart92/airport_challenge/releases{/id}","deployments_url":"https://api.github.com/repos/TomStuart92/airport_challenge/deployments","created_at":"2016-08-20T09:59:52Z","updated_at":"2016-08-20T09:59:53Z","pushed_at":"2016-08-20T15:00:37Z","git_url":"git://github.com/TomStuart92/airport_challenge.git","ssh_url":"git@github.com:TomStuart92/airport_challenge.git","clone_url":"https://github.com/TomStuart92/airport_challenge.git","svn_url":"https://github.com/TomStuart92/airport_challenge","homepage":"","size":111,"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":"260e84a7f2ec1fe5e3257ebcf1509ce99e75ce89","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-08-20T15:01:33Z","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":27016,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":453,"mirror_url":null,"open_issues_count":100,"forks":453,"open_issues":100,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/500"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/500"},"issue":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/500"},"comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/500/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/500/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/500/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/5c99f5ad67a1bde0303d3f9d8758171577615e78"}}}}
{"actor":{"display_login":"houndci-bot"}}