{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/26974723","id":26974723,"diff_hunk":"@@ -1,2 +1,44 @@\n class Plane\n+  DEFAULT_SEATS = 50\n+  attr_reader :flying, :capacity, :seats\n+  alias_method :airborne?, :flying\n+\n+  def initialize(options = {})\n+    options = defaults.merge(options)\n+    @flying = options[:airborne]\n+    @capacity = options[:capacity]\n+    @seats = []\n+  end\n+\n+  def take_off\n+    @flying = true\n+    self\n+  end\n+\n+  def land\n+    @flying = false\n+    self\n+  end\n+\n+  def board(passenger)\n+    fail \"Plane Full\" if full?\n+    check_in(passenger)\n+    seats << passenger\n+  end\n+\n+  private\n+\n+  attr_writer :seats\n+\n+  def full?\n+    seats.length >= capacity\n+  end\n+\n+  def defaults\n+    { airborne: true, capacity: DEFAULT_SEATS }\n+  end\n+\n+  def check_in(passenger)\n+    passenger.check_in","path":"lib/plane.rb","position":42,"original_position":42,"commit_id":"88f2643c178bff4ac065f7ec8441ea3c4c9209ae","original_commit_id":"88f2643c178bff4ac065f7ec8441ea3c4c9209ae","user":{"login":"sjmog","id":1960230,"avatar_url":"https://avatars.githubusercontent.com/u/1960230?v=3","gravatar_id":"","url":"https://api.github.com/users/sjmog","html_url":"https://github.com/sjmog","followers_url":"https://api.github.com/users/sjmog/followers","following_url":"https://api.github.com/users/sjmog/following{/other_user}","gists_url":"https://api.github.com/users/sjmog/gists{/gist_id}","starred_url":"https://api.github.com/users/sjmog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjmog/subscriptions","organizations_url":"https://api.github.com/users/sjmog/orgs","repos_url":"https://api.github.com/users/sjmog/repos","events_url":"https://api.github.com/users/sjmog/events{/privacy}","received_events_url":"https://api.github.com/users/sjmog/received_events","type":"User","site_admin":false},"body":"I think this could just be used up in the `board` method. Passing `passenger` around this much seems a little unnecessary, especially when this is just a wrapper for a method on `passenger`.","created_at":"2015-03-23T20:13:58Z","updated_at":"2015-03-23T20:13:58Z","html_url":"https://github.com/makersacademy/airport_challenge/pull/12#discussion_r26974723","pull_request_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/26974723"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/12#discussion_r26974723"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/12","id":31693574,"html_url":"https://github.com/makersacademy/airport_challenge/pull/12","diff_url":"https://github.com/makersacademy/airport_challenge/pull/12.diff","patch_url":"https://github.com/makersacademy/airport_challenge/pull/12.patch","issue_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/12","number":12,"state":"open","locked":false,"title":"Test Created and Reformatted for all user stories","user":{"login":"RBGeomaticsRob","id":10895286,"avatar_url":"https://avatars.githubusercontent.com/u/10895286?v=3","gravatar_id":"","url":"https://api.github.com/users/RBGeomaticsRob","html_url":"https://github.com/RBGeomaticsRob","followers_url":"https://api.github.com/users/RBGeomaticsRob/followers","following_url":"https://api.github.com/users/RBGeomaticsRob/following{/other_user}","gists_url":"https://api.github.com/users/RBGeomaticsRob/gists{/gist_id}","starred_url":"https://api.github.com/users/RBGeomaticsRob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RBGeomaticsRob/subscriptions","organizations_url":"https://api.github.com/users/RBGeomaticsRob/orgs","repos_url":"https://api.github.com/users/RBGeomaticsRob/repos","events_url":"https://api.github.com/users/RBGeomaticsRob/events{/privacy}","received_events_url":"https://api.github.com/users/RBGeomaticsRob/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-22T19:47:19Z","updated_at":"2015-03-23T20:13:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37b4ff207b4ce6a40643ea405067d37d9856abf9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/12/commits","review_comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/12/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/12/comments","statuses_url":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/88f2643c178bff4ac065f7ec8441ea3c4c9209ae","head":{"label":"RBGeomaticsRob:master","ref":"master","sha":"88f2643c178bff4ac065f7ec8441ea3c4c9209ae","user":{"login":"RBGeomaticsRob","id":10895286,"avatar_url":"https://avatars.githubusercontent.com/u/10895286?v=3","gravatar_id":"","url":"https://api.github.com/users/RBGeomaticsRob","html_url":"https://github.com/RBGeomaticsRob","followers_url":"https://api.github.com/users/RBGeomaticsRob/followers","following_url":"https://api.github.com/users/RBGeomaticsRob/following{/other_user}","gists_url":"https://api.github.com/users/RBGeomaticsRob/gists{/gist_id}","starred_url":"https://api.github.com/users/RBGeomaticsRob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RBGeomaticsRob/subscriptions","organizations_url":"https://api.github.com/users/RBGeomaticsRob/orgs","repos_url":"https://api.github.com/users/RBGeomaticsRob/repos","events_url":"https://api.github.com/users/RBGeomaticsRob/events{/privacy}","received_events_url":"https://api.github.com/users/RBGeomaticsRob/received_events","type":"User","site_admin":false},"repo":{"id":32581092,"name":"airport_challenge","full_name":"RBGeomaticsRob/airport_challenge","owner":{"login":"RBGeomaticsRob","id":10895286,"avatar_url":"https://avatars.githubusercontent.com/u/10895286?v=3","gravatar_id":"","url":"https://api.github.com/users/RBGeomaticsRob","html_url":"https://github.com/RBGeomaticsRob","followers_url":"https://api.github.com/users/RBGeomaticsRob/followers","following_url":"https://api.github.com/users/RBGeomaticsRob/following{/other_user}","gists_url":"https://api.github.com/users/RBGeomaticsRob/gists{/gist_id}","starred_url":"https://api.github.com/users/RBGeomaticsRob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RBGeomaticsRob/subscriptions","organizations_url":"https://api.github.com/users/RBGeomaticsRob/orgs","repos_url":"https://api.github.com/users/RBGeomaticsRob/repos","events_url":"https://api.github.com/users/RBGeomaticsRob/events{/privacy}","received_events_url":"https://api.github.com/users/RBGeomaticsRob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RBGeomaticsRob/airport_challenge","description":"Fly!","fork":true,"url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge","forks_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/forks","keys_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/teams","hooks_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/events","assignees_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/tags","blobs_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/subscription","commits_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/merges","archive_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/downloads","issues_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/RBGeomaticsRob/airport_challenge/releases{/id}","created_at":"2015-03-20T11:53:33Z","updated_at":"2015-03-22T22:59:15Z","pushed_at":"2015-03-22T22:59:15Z","git_url":"git://github.com/RBGeomaticsRob/airport_challenge.git","ssh_url":"git@github.com:RBGeomaticsRob/airport_challenge.git","clone_url":"https://github.com/RBGeomaticsRob/airport_challenge.git","svn_url":"https://github.com/RBGeomaticsRob/airport_challenge","homepage":"","size":179,"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":"20348c9ff2b1c1122a93245cb4daada7bd016206","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}","created_at":"2014-11-24T12:30:39Z","updated_at":"2015-03-23T10:28:01Z","pushed_at":"2015-03-23T14:41:39Z","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":928,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":30,"forks":32,"open_issues":30,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/12"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/12"},"issue":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/12"},"comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/12/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/12/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/88f2643c178bff4ac065f7ec8441ea3c4c9209ae"}}}}