{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments/55935912","id":55935912,"diff_hunk":"@@ -0,0 +1,67 @@\n+require_relative 'menu'\n+\n+class CustomerOrder \n+\n+\tattr_reader :my_order, :current_menu\n+\n+\tdef initialize(instance_menu)\n+\t\t@instance_menu = instance_menu\n+\t\t@current_menu = @instance_menu.menu_list\t\n+\t\t@my_order = Hash.new\n+\tend\n+\n+\tdef add_to_order(this_dish, quantity)\n+\t\tfail \"#{this_dish} is not on the menu.\" if !@instance_menu.find(this_dish)\n+\t\tif !find_item(this_dish).empty?\n+\t\t \t@my_order[selected(this_dish)] = find_quantity(this_dish) + quantity\n+\t\telse\n+\t\t\t@my_order[selected(this_dish)] = quantity\n+\t\tend\n+\tend\n+\n+\tdef remove_from_order(this_dish, quantity)\n+\t\tfail \"#{this_dish} is not in your order.\" if find_item(this_dish).empty?\n+\t\tquantity < find_quantity(this_dish) ? @my_order[selected(this_dish)] = find_quantity(this_dish) - quantity : @my_order.delete(remove(this_dish))\n+\tend\n+\n+\tdef total_cost\t\t \n+\t\t cost\n+\t\t @sum\n+\tend\n+\n+\tprivate","path":"lib/customer_order.rb","position":32,"original_position":32,"commit_id":"54b8acfe0d92a42a1b1f8949908267894d6162e5","original_commit_id":"54b8acfe0d92a42a1b1f8949908267894d6162e5","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-03-13T11:44:03Z","updated_at":"2016-03-13T11:44:03Z","html_url":"https://github.com/makersacademy/takeaway-challenge/pull/322#discussion_r55935912","pull_request_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/322","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments/55935912"},"html":{"href":"https://github.com/makersacademy/takeaway-challenge/pull/322#discussion_r55935912"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/322"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/322","id":62668888,"html_url":"https://github.com/makersacademy/takeaway-challenge/pull/322","diff_url":"https://github.com/makersacademy/takeaway-challenge/pull/322.diff","patch_url":"https://github.com/makersacademy/takeaway-challenge/pull/322.patch","issue_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/322","number":322,"state":"open","locked":false,"title":"New beginning","user":{"login":"hawksdoves","id":15752626,"avatar_url":"https://avatars.githubusercontent.com/u/15752626?v=3","gravatar_id":"","url":"https://api.github.com/users/hawksdoves","html_url":"https://github.com/hawksdoves","followers_url":"https://api.github.com/users/hawksdoves/followers","following_url":"https://api.github.com/users/hawksdoves/following{/other_user}","gists_url":"https://api.github.com/users/hawksdoves/gists{/gist_id}","starred_url":"https://api.github.com/users/hawksdoves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawksdoves/subscriptions","organizations_url":"https://api.github.com/users/hawksdoves/orgs","repos_url":"https://api.github.com/users/hawksdoves/repos","events_url":"https://api.github.com/users/hawksdoves/events{/privacy}","received_events_url":"https://api.github.com/users/hawksdoves/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-13T11:43:58Z","updated_at":"2016-03-13T11:44:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"276b85f2515c5b206db1190ec67d8d227802f6e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/322/commits","review_comments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/322/comments","review_comment_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/322/comments","statuses_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/54b8acfe0d92a42a1b1f8949908267894d6162e5","head":{"label":"hawksdoves:new-beginning","ref":"new-beginning","sha":"54b8acfe0d92a42a1b1f8949908267894d6162e5","user":{"login":"hawksdoves","id":15752626,"avatar_url":"https://avatars.githubusercontent.com/u/15752626?v=3","gravatar_id":"","url":"https://api.github.com/users/hawksdoves","html_url":"https://github.com/hawksdoves","followers_url":"https://api.github.com/users/hawksdoves/followers","following_url":"https://api.github.com/users/hawksdoves/following{/other_user}","gists_url":"https://api.github.com/users/hawksdoves/gists{/gist_id}","starred_url":"https://api.github.com/users/hawksdoves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawksdoves/subscriptions","organizations_url":"https://api.github.com/users/hawksdoves/orgs","repos_url":"https://api.github.com/users/hawksdoves/repos","events_url":"https://api.github.com/users/hawksdoves/events{/privacy}","received_events_url":"https://api.github.com/users/hawksdoves/received_events","type":"User","site_admin":false},"repo":{"id":53725652,"name":"takeaway-challenge","full_name":"hawksdoves/takeaway-challenge","owner":{"login":"hawksdoves","id":15752626,"avatar_url":"https://avatars.githubusercontent.com/u/15752626?v=3","gravatar_id":"","url":"https://api.github.com/users/hawksdoves","html_url":"https://github.com/hawksdoves","followers_url":"https://api.github.com/users/hawksdoves/followers","following_url":"https://api.github.com/users/hawksdoves/following{/other_user}","gists_url":"https://api.github.com/users/hawksdoves/gists{/gist_id}","starred_url":"https://api.github.com/users/hawksdoves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawksdoves/subscriptions","organizations_url":"https://api.github.com/users/hawksdoves/orgs","repos_url":"https://api.github.com/users/hawksdoves/repos","events_url":"https://api.github.com/users/hawksdoves/events{/privacy}","received_events_url":"https://api.github.com/users/hawksdoves/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hawksdoves/takeaway-challenge","description":"Use the Twilio Gem to order food","fork":true,"url":"https://api.github.com/repos/hawksdoves/takeaway-challenge","forks_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/forks","keys_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/teams","hooks_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/hooks","issue_events_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/events","assignees_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/tags","blobs_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/languages","stargazers_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/stargazers","contributors_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/contributors","subscribers_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/subscribers","subscription_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/subscription","commits_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/merges","archive_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/downloads","issues_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/labels{/name}","releases_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/hawksdoves/takeaway-challenge/deployments","created_at":"2016-03-12T10:20:43Z","updated_at":"2016-03-12T10:20:45Z","pushed_at":"2016-03-13T11:43:30Z","git_url":"git://github.com/hawksdoves/takeaway-challenge.git","ssh_url":"git@github.com:hawksdoves/takeaway-challenge.git","clone_url":"https://github.com/hawksdoves/takeaway-challenge.git","svn_url":"https://github.com/hawksdoves/takeaway-challenge","homepage":null,"size":54,"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":"7c203950d661a87af28693069423f701790ad0be","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":27006189,"name":"takeaway-challenge","full_name":"makersacademy/takeaway-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/takeaway-challenge","description":"Use the Twilio Gem to order food","fork":false,"url":"https://api.github.com/repos/makersacademy/takeaway-challenge","forks_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/deployments","created_at":"2014-11-22T17:19:46Z","updated_at":"2016-02-02T13:16:42Z","pushed_at":"2016-03-13T11:43:59Z","git_url":"git://github.com/makersacademy/takeaway-challenge.git","ssh_url":"git@github.com:makersacademy/takeaway-challenge.git","clone_url":"https://github.com/makersacademy/takeaway-challenge.git","svn_url":"https://github.com/makersacademy/takeaway-challenge","homepage":null,"size":3729,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":287,"mirror_url":null,"open_issues_count":72,"forks":287,"open_issues":72,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/322"},"html":{"href":"https://github.com/makersacademy/takeaway-challenge/pull/322"},"issue":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/322"},"comments":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/322/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/322/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/322/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/54b8acfe0d92a42a1b1f8949908267894d6162e5"}}}}