{"action":"created","comment":{"url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls/comments/150481656","pull_request_review_id":76034486,"id":150481656,"diff_hunk":"@@ -0,0 +1,159 @@\n+class Employer\n+  \n+ attr_accessor :name, :salary\n+ \n+\tdef get_salary()\n+\tend\n+end\n+\n+class Visitor\n+  \n+ attr_accessor :name, :table_number\n+ \n+ \tdef choose_table(table)\n+ \t  puts \"Visitor #{@name} choose table #{table.number}\"\n+ \tend\n+ \t\n+\tdef call_waiter\n+\t   puts \"Visitor #{@name} call waiter\"\n+\tend\n+\t\n+\tdef call_maneger\n+\t  puts \"Visitor #{@name} call manager\"\n+\tend\n+\t\n+ \tdef make_order\n+ \t  puts \"Visitor #{@name} make his order \"\n+ \tend\n+ \t\n+ \tdef eat_dish\n+    puts \"dish is missing\"\n+ \tend\n+ \t\n+\tdef ask_bill(waiter)\n+\t  puts \"Visitor #{@name} call waiter to bring his bill \"\n+\tend\n+\t\n+ \tdef pay_bill(bill)\n+ \t  puts \"Visitor #{@name} pay amount #{bill.amount}\"\n+ \tend\n+ \t\n+end\n+\n+\n+class Waiter < Employer\n+  \n+ attr_accessor :name, :salary\n+\n+ \tdef accept_order\n+ \t  puts \"Waiter take order\"\n+ \tend\n+ \t\n+ \tdef bring_dish\n+ \t  puts \"Waiter bring dish\"\n+ \tend\n+ \t\n+ \tdef bring_bill\n+ \t  puts \"Waiter bring bill\"\n+ \tend\n+ \t\n+end\n+\n+\n+class Maneger < Employer\n+  \n+ attr_accessor :name, :salary\n+\n+\tdef talk_with_visitors(visitor)\n+\t  puts \"Maneger talk wiht Visitor #{@name}\"\n+\tend\n+\t \n+end\n+\n+\n+class Cook < Employer\n+  \n+ attr_accessor :name, :salary\n+\n+ def cooking\n+  puts \"Cook make dish\"\n+ end\n+   \n+end\n+\n+\n+ \t\t\n+class Table\n+\n+ attr_accessor :number\n+ \n+ def occupy(visitor)\n+       puts \"Visitor #{@name} occupy table number #{number}\"\n+ end\n+\n+ def leave(visitor)\n+   puts \"Visitor #{@name} leave table number #{number}\"","path":"homeworks/constantin.rusenko_ConstantinRusenko/homework_3/homework3.rb","position":95,"original_position":95,"commit_id":"7e010a4a68f7d22d53f3c10723988a1e01377e56","original_commit_id":"7e010a4a68f7d22d53f3c10723988a1e01377e56","user":{"login":"VeloKoder","id":3618514,"avatar_url":"https://avatars1.githubusercontent.com/u/3618514?v=4","gravatar_id":"","url":"https://api.github.com/users/VeloKoder","html_url":"https://github.com/VeloKoder","followers_url":"https://api.github.com/users/VeloKoder/followers","following_url":"https://api.github.com/users/VeloKoder/following{/other_user}","gists_url":"https://api.github.com/users/VeloKoder/gists{/gist_id}","starred_url":"https://api.github.com/users/VeloKoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VeloKoder/subscriptions","organizations_url":"https://api.github.com/users/VeloKoder/orgs","repos_url":"https://api.github.com/users/VeloKoder/repos","events_url":"https://api.github.com/users/VeloKoder/events{/privacy}","received_events_url":"https://api.github.com/users/VeloKoder/received_events","type":"User","site_admin":false},"body":"Та ж сама проблема з змінною","created_at":"2017-11-13T09:21:18Z","updated_at":"2017-11-13T09:27:03Z","html_url":"https://github.com/MastersAcademy/ruby-rails-course-2017/pull/49#discussion_r150481656","pull_request_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls/49","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls/comments/150481656"},"html":{"href":"https://github.com/MastersAcademy/ruby-rails-course-2017/pull/49#discussion_r150481656"},"pull_request":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls/49","id":152123772,"html_url":"https://github.com/MastersAcademy/ruby-rails-course-2017/pull/49","diff_url":"https://github.com/MastersAcademy/ruby-rails-course-2017/pull/49.diff","patch_url":"https://github.com/MastersAcademy/ruby-rails-course-2017/pull/49.patch","issue_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/issues/49","number":49,"state":"open","locked":false,"title":"Homework","user":{"login":"ConstantinRusenko","id":30158130,"avatar_url":"https://avatars2.githubusercontent.com/u/30158130?v=4","gravatar_id":"","url":"https://api.github.com/users/ConstantinRusenko","html_url":"https://github.com/ConstantinRusenko","followers_url":"https://api.github.com/users/ConstantinRusenko/followers","following_url":"https://api.github.com/users/ConstantinRusenko/following{/other_user}","gists_url":"https://api.github.com/users/ConstantinRusenko/gists{/gist_id}","starred_url":"https://api.github.com/users/ConstantinRusenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ConstantinRusenko/subscriptions","organizations_url":"https://api.github.com/users/ConstantinRusenko/orgs","repos_url":"https://api.github.com/users/ConstantinRusenko/repos","events_url":"https://api.github.com/users/ConstantinRusenko/events{/privacy}","received_events_url":"https://api.github.com/users/ConstantinRusenko/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-12T21:11:04Z","updated_at":"2017-11-13T09:27:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7583eac9dd9cefd0aedd583332f2794e0c7c285","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls/49/commits","review_comments_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls/49/comments","review_comment_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/issues/49/comments","statuses_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/statuses/7e010a4a68f7d22d53f3c10723988a1e01377e56","head":{"label":"ConstantinRusenko:master","ref":"master","sha":"7e010a4a68f7d22d53f3c10723988a1e01377e56","user":{"login":"ConstantinRusenko","id":30158130,"avatar_url":"https://avatars2.githubusercontent.com/u/30158130?v=4","gravatar_id":"","url":"https://api.github.com/users/ConstantinRusenko","html_url":"https://github.com/ConstantinRusenko","followers_url":"https://api.github.com/users/ConstantinRusenko/followers","following_url":"https://api.github.com/users/ConstantinRusenko/following{/other_user}","gists_url":"https://api.github.com/users/ConstantinRusenko/gists{/gist_id}","starred_url":"https://api.github.com/users/ConstantinRusenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ConstantinRusenko/subscriptions","organizations_url":"https://api.github.com/users/ConstantinRusenko/orgs","repos_url":"https://api.github.com/users/ConstantinRusenko/repos","events_url":"https://api.github.com/users/ConstantinRusenko/events{/privacy}","received_events_url":"https://api.github.com/users/ConstantinRusenko/received_events","type":"User","site_admin":false},"repo":{"id":108525512,"name":"ruby-rails-course-2017","full_name":"ConstantinRusenko/ruby-rails-course-2017","owner":{"login":"ConstantinRusenko","id":30158130,"avatar_url":"https://avatars2.githubusercontent.com/u/30158130?v=4","gravatar_id":"","url":"https://api.github.com/users/ConstantinRusenko","html_url":"https://github.com/ConstantinRusenko","followers_url":"https://api.github.com/users/ConstantinRusenko/followers","following_url":"https://api.github.com/users/ConstantinRusenko/following{/other_user}","gists_url":"https://api.github.com/users/ConstantinRusenko/gists{/gist_id}","starred_url":"https://api.github.com/users/ConstantinRusenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ConstantinRusenko/subscriptions","organizations_url":"https://api.github.com/users/ConstantinRusenko/orgs","repos_url":"https://api.github.com/users/ConstantinRusenko/repos","events_url":"https://api.github.com/users/ConstantinRusenko/events{/privacy}","received_events_url":"https://api.github.com/users/ConstantinRusenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ConstantinRusenko/ruby-rails-course-2017","description":null,"fork":true,"url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017","forks_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/forks","keys_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/teams","hooks_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/hooks","issue_events_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/issues/events{/number}","events_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/events","assignees_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/assignees{/user}","branches_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/branches{/branch}","tags_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/tags","blobs_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/git/refs{/sha}","trees_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/statuses/{sha}","languages_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/languages","stargazers_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/stargazers","contributors_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/contributors","subscribers_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/subscribers","subscription_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/subscription","commits_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/commits{/sha}","git_commits_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/git/commits{/sha}","comments_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/comments{/number}","issue_comment_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/issues/comments{/number}","contents_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/contents/{+path}","compare_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/merges","archive_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/downloads","issues_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/issues{/number}","pulls_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/pulls{/number}","milestones_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/milestones{/number}","notifications_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/labels{/name}","releases_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/releases{/id}","deployments_url":"https://api.github.com/repos/ConstantinRusenko/ruby-rails-course-2017/deployments","created_at":"2017-10-27T09:17:29Z","updated_at":"2017-10-27T09:17:31Z","pushed_at":"2017-11-12T21:08:32Z","git_url":"git://github.com/ConstantinRusenko/ruby-rails-course-2017.git","ssh_url":"git@github.com:ConstantinRusenko/ruby-rails-course-2017.git","clone_url":"https://github.com/ConstantinRusenko/ruby-rails-course-2017.git","svn_url":"https://github.com/ConstantinRusenko/ruby-rails-course-2017","homepage":null,"size":852,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MastersAcademy:master","ref":"master","sha":"849f0ba4e37bc2b11cf8d96ce43420aa4146295c","user":{"login":"MastersAcademy","id":22305415,"avatar_url":"https://avatars3.githubusercontent.com/u/22305415?v=4","gravatar_id":"","url":"https://api.github.com/users/MastersAcademy","html_url":"https://github.com/MastersAcademy","followers_url":"https://api.github.com/users/MastersAcademy/followers","following_url":"https://api.github.com/users/MastersAcademy/following{/other_user}","gists_url":"https://api.github.com/users/MastersAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/MastersAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastersAcademy/subscriptions","organizations_url":"https://api.github.com/users/MastersAcademy/orgs","repos_url":"https://api.github.com/users/MastersAcademy/repos","events_url":"https://api.github.com/users/MastersAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/MastersAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":107963195,"name":"ruby-rails-course-2017","full_name":"MastersAcademy/ruby-rails-course-2017","owner":{"login":"MastersAcademy","id":22305415,"avatar_url":"https://avatars3.githubusercontent.com/u/22305415?v=4","gravatar_id":"","url":"https://api.github.com/users/MastersAcademy","html_url":"https://github.com/MastersAcademy","followers_url":"https://api.github.com/users/MastersAcademy/followers","following_url":"https://api.github.com/users/MastersAcademy/following{/other_user}","gists_url":"https://api.github.com/users/MastersAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/MastersAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastersAcademy/subscriptions","organizations_url":"https://api.github.com/users/MastersAcademy/orgs","repos_url":"https://api.github.com/users/MastersAcademy/repos","events_url":"https://api.github.com/users/MastersAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/MastersAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MastersAcademy/ruby-rails-course-2017","description":null,"fork":false,"url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017","forks_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/forks","keys_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/teams","hooks_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/hooks","issue_events_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/issues/events{/number}","events_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/events","assignees_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/assignees{/user}","branches_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/branches{/branch}","tags_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/tags","blobs_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/git/refs{/sha}","trees_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/statuses/{sha}","languages_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/languages","stargazers_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/stargazers","contributors_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/contributors","subscribers_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/subscribers","subscription_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/subscription","commits_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/commits{/sha}","git_commits_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/git/commits{/sha}","comments_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/comments{/number}","issue_comment_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/issues/comments{/number}","contents_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/contents/{+path}","compare_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/merges","archive_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/downloads","issues_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/issues{/number}","pulls_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls{/number}","milestones_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/milestones{/number}","notifications_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/labels{/name}","releases_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/releases{/id}","deployments_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/deployments","created_at":"2017-10-23T09:53:35Z","updated_at":"2017-11-13T08:16:13Z","pushed_at":"2017-11-13T08:29:44Z","git_url":"git://github.com/MastersAcademy/ruby-rails-course-2017.git","ssh_url":"git@github.com:MastersAcademy/ruby-rails-course-2017.git","clone_url":"https://github.com/MastersAcademy/ruby-rails-course-2017.git","svn_url":"https://github.com/MastersAcademy/ruby-rails-course-2017","homepage":null,"size":884,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":10,"forks":23,"open_issues":10,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls/49"},"html":{"href":"https://github.com/MastersAcademy/ruby-rails-course-2017/pull/49"},"issue":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/issues/49"},"comments":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course-2017/statuses/7e010a4a68f7d22d53f3c10723988a1e01377e56"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"VeloKoder"}}