{"action":"created","comment":{"url":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls/comments/41139153","id":41139153,"diff_hunk":"@@ -1,2 +1,55 @@\n class Airport\n-end\n+\n+\tinclude Weather\n+\n+\tDEFAULT_CAPACITY = 10\n+\n+\tattr_accessor :planes, :capacity\n+\n+\tdef initialize\n+\t\t@capacity = (:capacity)\n+\t\t@planes = (:planes)\n+\tend\n+\n+\tdef capacity\n+\n+\t\t@capacity = DEFAULT_CAPACITY\n+\tend\n+\n+\tdef planes\n+\t\t@planes = 4\n+\tend\n+\n+\tdef land(planes)\n+\n+\t\tsay \"landing prohibited in a storm!\" if stormy?\n+\t\tsay \"Airport is full\" if full?\n+\t\tsay \"plane has landed\" if has_landed\n+\t\tsay \"ready to take_off?\" if clear_skies\n+\tend\n+\n+\tdef take_off(planes)\n+\n+\t\tsay \"take off not aloud in storm\" if stormy?\n+\tend\n+\n+\tdef full\n+\n+\t\tplanes.count == @planes\n+\tend\n+\n+\tdef has_landed(planes)\n+\t\tplane.include? (planes)\n+\tend\n+\n+\tdef clear_skies\n+\t\tcondition = :sunny\n+\tend\n+\n+\tdef stormy\n+\t\tcondition = :storm\n+\n+\tdef airport_full?\n+\t\tlanded_planes.count == capacity\n+\tend\n+end","path":"lib/airport.rb","position":56,"original_position":56,"commit_id":"ace76d0b6cf5002e6149f12002c6e96a7fa9705d","original_commit_id":"ace76d0b6cf5002e6149f12002c6e96a7fa9705d","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"unexpected token $end","created_at":"2015-10-05T12:48:13Z","updated_at":"2015-10-05T12:48:13Z","html_url":"https://github.com/MakersSweden/airport_challenge/pull/8#discussion_r41139153","pull_request_url":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls/comments/41139153"},"html":{"href":"https://github.com/MakersSweden/airport_challenge/pull/8#discussion_r41139153"},"pull_request":{"href":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls/8","id":44783350,"html_url":"https://github.com/MakersSweden/airport_challenge/pull/8","diff_url":"https://github.com/MakersSweden/airport_challenge/pull/8.diff","patch_url":"https://github.com/MakersSweden/airport_challenge/pull/8.patch","issue_url":"https://api.github.com/repos/MakersSweden/airport_challenge/issues/8","number":8,"state":"open","locked":false,"title":"my solution of the challenge","user":{"login":"DavidHesabian","id":13981098,"avatar_url":"https://avatars.githubusercontent.com/u/13981098?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidHesabian","html_url":"https://github.com/DavidHesabian","followers_url":"https://api.github.com/users/DavidHesabian/followers","following_url":"https://api.github.com/users/DavidHesabian/following{/other_user}","gists_url":"https://api.github.com/users/DavidHesabian/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidHesabian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidHesabian/subscriptions","organizations_url":"https://api.github.com/users/DavidHesabian/orgs","repos_url":"https://api.github.com/users/DavidHesabian/repos","events_url":"https://api.github.com/users/DavidHesabian/events{/privacy}","received_events_url":"https://api.github.com/users/DavidHesabian/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-11T13:41:06Z","updated_at":"2015-10-05T12:48:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00caeb7158b1f51b818ad7d135965efc1264ab3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls/8/commits","review_comments_url":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls/8/comments","review_comment_url":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MakersSweden/airport_challenge/issues/8/comments","statuses_url":"https://api.github.com/repos/MakersSweden/airport_challenge/statuses/ace76d0b6cf5002e6149f12002c6e96a7fa9705d","head":{"label":"DavidHesabian:master","ref":"master","sha":"ace76d0b6cf5002e6149f12002c6e96a7fa9705d","user":{"login":"DavidHesabian","id":13981098,"avatar_url":"https://avatars.githubusercontent.com/u/13981098?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidHesabian","html_url":"https://github.com/DavidHesabian","followers_url":"https://api.github.com/users/DavidHesabian/followers","following_url":"https://api.github.com/users/DavidHesabian/following{/other_user}","gists_url":"https://api.github.com/users/DavidHesabian/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidHesabian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidHesabian/subscriptions","organizations_url":"https://api.github.com/users/DavidHesabian/orgs","repos_url":"https://api.github.com/users/DavidHesabian/repos","events_url":"https://api.github.com/users/DavidHesabian/events{/privacy}","received_events_url":"https://api.github.com/users/DavidHesabian/received_events","type":"User","site_admin":false},"repo":{"id":41918705,"name":"airport_challenge","full_name":"DavidHesabian/airport_challenge","owner":{"login":"DavidHesabian","id":13981098,"avatar_url":"https://avatars.githubusercontent.com/u/13981098?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidHesabian","html_url":"https://github.com/DavidHesabian","followers_url":"https://api.github.com/users/DavidHesabian/followers","following_url":"https://api.github.com/users/DavidHesabian/following{/other_user}","gists_url":"https://api.github.com/users/DavidHesabian/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidHesabian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidHesabian/subscriptions","organizations_url":"https://api.github.com/users/DavidHesabian/orgs","repos_url":"https://api.github.com/users/DavidHesabian/repos","events_url":"https://api.github.com/users/DavidHesabian/events{/privacy}","received_events_url":"https://api.github.com/users/DavidHesabian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DavidHesabian/airport_challenge","description":"Fly!","fork":true,"url":"https://api.github.com/repos/DavidHesabian/airport_challenge","forks_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/forks","keys_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/teams","hooks_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/events","assignees_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/tags","blobs_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/subscription","commits_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/merges","archive_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/downloads","issues_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/DavidHesabian/airport_challenge/releases{/id}","created_at":"2015-09-04T13:57:33Z","updated_at":"2015-09-04T13:57:33Z","pushed_at":"2015-10-05T12:48:10Z","git_url":"git://github.com/DavidHesabian/airport_challenge.git","ssh_url":"git@github.com:DavidHesabian/airport_challenge.git","clone_url":"https://github.com/DavidHesabian/airport_challenge.git","svn_url":"https://github.com/DavidHesabian/airport_challenge","homepage":"","size":173,"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":"MakersSweden:master","ref":"master","sha":"d94cb2671275b8fc06191334a4e8fae901eb5443","user":{"login":"MakersSweden","id":12081851,"avatar_url":"https://avatars.githubusercontent.com/u/12081851?v=3","gravatar_id":"","url":"https://api.github.com/users/MakersSweden","html_url":"https://github.com/MakersSweden","followers_url":"https://api.github.com/users/MakersSweden/followers","following_url":"https://api.github.com/users/MakersSweden/following{/other_user}","gists_url":"https://api.github.com/users/MakersSweden/gists{/gist_id}","starred_url":"https://api.github.com/users/MakersSweden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MakersSweden/subscriptions","organizations_url":"https://api.github.com/users/MakersSweden/orgs","repos_url":"https://api.github.com/users/MakersSweden/repos","events_url":"https://api.github.com/users/MakersSweden/events{/privacy}","received_events_url":"https://api.github.com/users/MakersSweden/received_events","type":"Organization","site_admin":false},"repo":{"id":41902795,"name":"airport_challenge","full_name":"MakersSweden/airport_challenge","owner":{"login":"MakersSweden","id":12081851,"avatar_url":"https://avatars.githubusercontent.com/u/12081851?v=3","gravatar_id":"","url":"https://api.github.com/users/MakersSweden","html_url":"https://github.com/MakersSweden","followers_url":"https://api.github.com/users/MakersSweden/followers","following_url":"https://api.github.com/users/MakersSweden/following{/other_user}","gists_url":"https://api.github.com/users/MakersSweden/gists{/gist_id}","starred_url":"https://api.github.com/users/MakersSweden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MakersSweden/subscriptions","organizations_url":"https://api.github.com/users/MakersSweden/orgs","repos_url":"https://api.github.com/users/MakersSweden/repos","events_url":"https://api.github.com/users/MakersSweden/events{/privacy}","received_events_url":"https://api.github.com/users/MakersSweden/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MakersSweden/airport_challenge","description":"Fly!","fork":true,"url":"https://api.github.com/repos/MakersSweden/airport_challenge","forks_url":"https://api.github.com/repos/MakersSweden/airport_challenge/forks","keys_url":"https://api.github.com/repos/MakersSweden/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MakersSweden/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MakersSweden/airport_challenge/teams","hooks_url":"https://api.github.com/repos/MakersSweden/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/MakersSweden/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/MakersSweden/airport_challenge/events","assignees_url":"https://api.github.com/repos/MakersSweden/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/MakersSweden/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/MakersSweden/airport_challenge/tags","blobs_url":"https://api.github.com/repos/MakersSweden/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MakersSweden/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MakersSweden/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/MakersSweden/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MakersSweden/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/MakersSweden/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/MakersSweden/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/MakersSweden/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/MakersSweden/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/MakersSweden/airport_challenge/subscription","commits_url":"https://api.github.com/repos/MakersSweden/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/MakersSweden/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/MakersSweden/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/MakersSweden/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/MakersSweden/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/MakersSweden/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MakersSweden/airport_challenge/merges","archive_url":"https://api.github.com/repos/MakersSweden/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MakersSweden/airport_challenge/downloads","issues_url":"https://api.github.com/repos/MakersSweden/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/MakersSweden/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/MakersSweden/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MakersSweden/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/MakersSweden/airport_challenge/releases{/id}","created_at":"2015-09-04T07:14:31Z","updated_at":"2015-09-04T07:14:32Z","pushed_at":"2015-10-05T12:48:10Z","git_url":"git://github.com/MakersSweden/airport_challenge.git","ssh_url":"git@github.com:MakersSweden/airport_challenge.git","clone_url":"https://github.com/MakersSweden/airport_challenge.git","svn_url":"https://github.com/MakersSweden/airport_challenge","homepage":"","size":360,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":7,"forks":7,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls/8"},"html":{"href":"https://github.com/MakersSweden/airport_challenge/pull/8"},"issue":{"href":"https://api.github.com/repos/MakersSweden/airport_challenge/issues/8"},"comments":{"href":"https://api.github.com/repos/MakersSweden/airport_challenge/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MakersSweden/airport_challenge/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/MakersSweden/airport_challenge/statuses/ace76d0b6cf5002e6149f12002c6e96a7fa9705d"}}}}