{"action":"created","comment":{"url":"https://api.github.com/repos/Ronnielol/Task-6/pulls/comments/104285983","pull_request_review_id":24984113,"id":104285983,"diff_hunk":"@@ -0,0 +1,96 @@\n+class Movie\n+\tattr_reader :link, :title, :year, :country, :date, \n+\t\t\t \t  :genre, :length, :rating, :director, :actors, :collection, :price, :period\n+\n+\tdef initialize(link, title, year, country, date, \n+\t\t\t \t   genre, length, rating, director, actors, collection)\n+\t\t@date = Date.parse(date) if date.to_s.length > 7\n+\t\t\t\n+\t\t@link, @title, @year, @country, @genre, @length, @rating, @director, @actors, @collection = link, title, year, country, \n+\t\t\t \t   genre.split(\",\"), length, rating, director, actors.split(\",\"), collection\n+\tend\n+\n+\tdef has_genre?(genre)\n+\t    if !@collection.genre_exists?(genre) \n+\t      raise ArgumentError, 'Аргумент задан с ошибкой, либо такого жанра не существует.'\n+\t   \tend\n+\t   \t@genre.include? genre\n+  \tend\n+\n+  \tdef description\n+  \t\tputs \"Описание фильма:\"\n+\t\tprint \"#{self.title} - \"\n+\tend\n+\n+\tdef change_balance\n+\t\tself.collection.balance -= self.price\n+\tend","path":"lib/movie.rb","position":27,"original_position":27,"commit_id":"65f4e57a97a08f14bd0526f98fd0e7762e99d2f8","original_commit_id":"65f4e57a97a08f14bd0526f98fd0e7762e99d2f8","user":{"login":"zverok","id":129656,"avatar_url":"https://avatars2.githubusercontent.com/u/129656?v=3","gravatar_id":"","url":"https://api.github.com/users/zverok","html_url":"https://github.com/zverok","followers_url":"https://api.github.com/users/zverok/followers","following_url":"https://api.github.com/users/zverok/following{/other_user}","gists_url":"https://api.github.com/users/zverok/gists{/gist_id}","starred_url":"https://api.github.com/users/zverok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zverok/subscriptions","organizations_url":"https://api.github.com/users/zverok/orgs","repos_url":"https://api.github.com/users/zverok/repos","events_url":"https://api.github.com/users/zverok/events{/privacy}","received_events_url":"https://api.github.com/users/zverok/received_events","type":"User","site_admin":false},"body":"Не, это нехорошо. Разделение ответственности неверное. Ну, представь — это получается, что снятием денег с баланса занимается не кассир, а каждый отдельный фильм, сам по себе? То есть фильм знает свою цену, но вот что с этой ценой делать — дело кинотеатра. Может в каком-то кинотеатре скидки для пенсионеров, а в другом увеличена цена в субботу — это всё тоже фильм должен знать?","created_at":"2017-03-04T11:09:53Z","updated_at":"2017-03-04T11:22:57Z","html_url":"https://github.com/Ronnielol/Task-6/pull/1#discussion_r104285983","pull_request_url":"https://api.github.com/repos/Ronnielol/Task-6/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Ronnielol/Task-6/pulls/comments/104285983"},"html":{"href":"https://github.com/Ronnielol/Task-6/pull/1#discussion_r104285983"},"pull_request":{"href":"https://api.github.com/repos/Ronnielol/Task-6/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Ronnielol/Task-6/pulls/1","id":108512738,"html_url":"https://github.com/Ronnielol/Task-6/pull/1","diff_url":"https://github.com/Ronnielol/Task-6/pull/1.diff","patch_url":"https://github.com/Ronnielol/Task-6/pull/1.patch","issue_url":"https://api.github.com/repos/Ronnielol/Task-6/issues/1","number":1,"state":"open","locked":false,"title":"mkdev pull","user":{"login":"Ronnielol","id":16290385,"avatar_url":"https://avatars1.githubusercontent.com/u/16290385?v=3","gravatar_id":"","url":"https://api.github.com/users/Ronnielol","html_url":"https://github.com/Ronnielol","followers_url":"https://api.github.com/users/Ronnielol/followers","following_url":"https://api.github.com/users/Ronnielol/following{/other_user}","gists_url":"https://api.github.com/users/Ronnielol/gists{/gist_id}","starred_url":"https://api.github.com/users/Ronnielol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ronnielol/subscriptions","organizations_url":"https://api.github.com/users/Ronnielol/orgs","repos_url":"https://api.github.com/users/Ronnielol/repos","events_url":"https://api.github.com/users/Ronnielol/events{/privacy}","received_events_url":"https://api.github.com/users/Ronnielol/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-01T10:54:00Z","updated_at":"2017-03-04T11:22:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02c90159fecef827ecfde4c230e8ebd5ce53e69b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ronnielol/Task-6/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Ronnielol/Task-6/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Ronnielol/Task-6/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ronnielol/Task-6/issues/1/comments","statuses_url":"https://api.github.com/repos/Ronnielol/Task-6/statuses/65f4e57a97a08f14bd0526f98fd0e7762e99d2f8","head":{"label":"Ronnielol:mkdev","ref":"mkdev","sha":"65f4e57a97a08f14bd0526f98fd0e7762e99d2f8","user":{"login":"Ronnielol","id":16290385,"avatar_url":"https://avatars1.githubusercontent.com/u/16290385?v=3","gravatar_id":"","url":"https://api.github.com/users/Ronnielol","html_url":"https://github.com/Ronnielol","followers_url":"https://api.github.com/users/Ronnielol/followers","following_url":"https://api.github.com/users/Ronnielol/following{/other_user}","gists_url":"https://api.github.com/users/Ronnielol/gists{/gist_id}","starred_url":"https://api.github.com/users/Ronnielol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ronnielol/subscriptions","organizations_url":"https://api.github.com/users/Ronnielol/orgs","repos_url":"https://api.github.com/users/Ronnielol/repos","events_url":"https://api.github.com/users/Ronnielol/events{/privacy}","received_events_url":"https://api.github.com/users/Ronnielol/received_events","type":"User","site_admin":false},"repo":{"id":83543897,"name":"Task-6","full_name":"Ronnielol/Task-6","owner":{"login":"Ronnielol","id":16290385,"avatar_url":"https://avatars1.githubusercontent.com/u/16290385?v=3","gravatar_id":"","url":"https://api.github.com/users/Ronnielol","html_url":"https://github.com/Ronnielol","followers_url":"https://api.github.com/users/Ronnielol/followers","following_url":"https://api.github.com/users/Ronnielol/following{/other_user}","gists_url":"https://api.github.com/users/Ronnielol/gists{/gist_id}","starred_url":"https://api.github.com/users/Ronnielol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ronnielol/subscriptions","organizations_url":"https://api.github.com/users/Ronnielol/orgs","repos_url":"https://api.github.com/users/Ronnielol/repos","events_url":"https://api.github.com/users/Ronnielol/events{/privacy}","received_events_url":"https://api.github.com/users/Ronnielol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ronnielol/Task-6","description":null,"fork":false,"url":"https://api.github.com/repos/Ronnielol/Task-6","forks_url":"https://api.github.com/repos/Ronnielol/Task-6/forks","keys_url":"https://api.github.com/repos/Ronnielol/Task-6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ronnielol/Task-6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ronnielol/Task-6/teams","hooks_url":"https://api.github.com/repos/Ronnielol/Task-6/hooks","issue_events_url":"https://api.github.com/repos/Ronnielol/Task-6/issues/events{/number}","events_url":"https://api.github.com/repos/Ronnielol/Task-6/events","assignees_url":"https://api.github.com/repos/Ronnielol/Task-6/assignees{/user}","branches_url":"https://api.github.com/repos/Ronnielol/Task-6/branches{/branch}","tags_url":"https://api.github.com/repos/Ronnielol/Task-6/tags","blobs_url":"https://api.github.com/repos/Ronnielol/Task-6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ronnielol/Task-6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ronnielol/Task-6/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ronnielol/Task-6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ronnielol/Task-6/statuses/{sha}","languages_url":"https://api.github.com/repos/Ronnielol/Task-6/languages","stargazers_url":"https://api.github.com/repos/Ronnielol/Task-6/stargazers","contributors_url":"https://api.github.com/repos/Ronnielol/Task-6/contributors","subscribers_url":"https://api.github.com/repos/Ronnielol/Task-6/subscribers","subscription_url":"https://api.github.com/repos/Ronnielol/Task-6/subscription","commits_url":"https://api.github.com/repos/Ronnielol/Task-6/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ronnielol/Task-6/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ronnielol/Task-6/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ronnielol/Task-6/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ronnielol/Task-6/contents/{+path}","compare_url":"https://api.github.com/repos/Ronnielol/Task-6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ronnielol/Task-6/merges","archive_url":"https://api.github.com/repos/Ronnielol/Task-6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ronnielol/Task-6/downloads","issues_url":"https://api.github.com/repos/Ronnielol/Task-6/issues{/number}","pulls_url":"https://api.github.com/repos/Ronnielol/Task-6/pulls{/number}","milestones_url":"https://api.github.com/repos/Ronnielol/Task-6/milestones{/number}","notifications_url":"https://api.github.com/repos/Ronnielol/Task-6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ronnielol/Task-6/labels{/name}","releases_url":"https://api.github.com/repos/Ronnielol/Task-6/releases{/id}","deployments_url":"https://api.github.com/repos/Ronnielol/Task-6/deployments","created_at":"2017-03-01T10:47:12Z","updated_at":"2017-03-01T10:47:12Z","pushed_at":"2017-03-03T14:18:40Z","git_url":"git://github.com/Ronnielol/Task-6.git","ssh_url":"git@github.com:Ronnielol/Task-6.git","clone_url":"https://github.com/Ronnielol/Task-6.git","svn_url":"https://github.com/Ronnielol/Task-6","homepage":null,"size":25,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Ronnielol:master","ref":"master","sha":"5f95a282a9d8433149141653739be8034e9c4319","user":{"login":"Ronnielol","id":16290385,"avatar_url":"https://avatars1.githubusercontent.com/u/16290385?v=3","gravatar_id":"","url":"https://api.github.com/users/Ronnielol","html_url":"https://github.com/Ronnielol","followers_url":"https://api.github.com/users/Ronnielol/followers","following_url":"https://api.github.com/users/Ronnielol/following{/other_user}","gists_url":"https://api.github.com/users/Ronnielol/gists{/gist_id}","starred_url":"https://api.github.com/users/Ronnielol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ronnielol/subscriptions","organizations_url":"https://api.github.com/users/Ronnielol/orgs","repos_url":"https://api.github.com/users/Ronnielol/repos","events_url":"https://api.github.com/users/Ronnielol/events{/privacy}","received_events_url":"https://api.github.com/users/Ronnielol/received_events","type":"User","site_admin":false},"repo":{"id":83543897,"name":"Task-6","full_name":"Ronnielol/Task-6","owner":{"login":"Ronnielol","id":16290385,"avatar_url":"https://avatars1.githubusercontent.com/u/16290385?v=3","gravatar_id":"","url":"https://api.github.com/users/Ronnielol","html_url":"https://github.com/Ronnielol","followers_url":"https://api.github.com/users/Ronnielol/followers","following_url":"https://api.github.com/users/Ronnielol/following{/other_user}","gists_url":"https://api.github.com/users/Ronnielol/gists{/gist_id}","starred_url":"https://api.github.com/users/Ronnielol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ronnielol/subscriptions","organizations_url":"https://api.github.com/users/Ronnielol/orgs","repos_url":"https://api.github.com/users/Ronnielol/repos","events_url":"https://api.github.com/users/Ronnielol/events{/privacy}","received_events_url":"https://api.github.com/users/Ronnielol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ronnielol/Task-6","description":null,"fork":false,"url":"https://api.github.com/repos/Ronnielol/Task-6","forks_url":"https://api.github.com/repos/Ronnielol/Task-6/forks","keys_url":"https://api.github.com/repos/Ronnielol/Task-6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ronnielol/Task-6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ronnielol/Task-6/teams","hooks_url":"https://api.github.com/repos/Ronnielol/Task-6/hooks","issue_events_url":"https://api.github.com/repos/Ronnielol/Task-6/issues/events{/number}","events_url":"https://api.github.com/repos/Ronnielol/Task-6/events","assignees_url":"https://api.github.com/repos/Ronnielol/Task-6/assignees{/user}","branches_url":"https://api.github.com/repos/Ronnielol/Task-6/branches{/branch}","tags_url":"https://api.github.com/repos/Ronnielol/Task-6/tags","blobs_url":"https://api.github.com/repos/Ronnielol/Task-6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ronnielol/Task-6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ronnielol/Task-6/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ronnielol/Task-6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ronnielol/Task-6/statuses/{sha}","languages_url":"https://api.github.com/repos/Ronnielol/Task-6/languages","stargazers_url":"https://api.github.com/repos/Ronnielol/Task-6/stargazers","contributors_url":"https://api.github.com/repos/Ronnielol/Task-6/contributors","subscribers_url":"https://api.github.com/repos/Ronnielol/Task-6/subscribers","subscription_url":"https://api.github.com/repos/Ronnielol/Task-6/subscription","commits_url":"https://api.github.com/repos/Ronnielol/Task-6/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ronnielol/Task-6/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ronnielol/Task-6/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ronnielol/Task-6/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ronnielol/Task-6/contents/{+path}","compare_url":"https://api.github.com/repos/Ronnielol/Task-6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ronnielol/Task-6/merges","archive_url":"https://api.github.com/repos/Ronnielol/Task-6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ronnielol/Task-6/downloads","issues_url":"https://api.github.com/repos/Ronnielol/Task-6/issues{/number}","pulls_url":"https://api.github.com/repos/Ronnielol/Task-6/pulls{/number}","milestones_url":"https://api.github.com/repos/Ronnielol/Task-6/milestones{/number}","notifications_url":"https://api.github.com/repos/Ronnielol/Task-6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ronnielol/Task-6/labels{/name}","releases_url":"https://api.github.com/repos/Ronnielol/Task-6/releases{/id}","deployments_url":"https://api.github.com/repos/Ronnielol/Task-6/deployments","created_at":"2017-03-01T10:47:12Z","updated_at":"2017-03-01T10:47:12Z","pushed_at":"2017-03-03T14:18:40Z","git_url":"git://github.com/Ronnielol/Task-6.git","ssh_url":"git@github.com:Ronnielol/Task-6.git","clone_url":"https://github.com/Ronnielol/Task-6.git","svn_url":"https://github.com/Ronnielol/Task-6","homepage":null,"size":25,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ronnielol/Task-6/pulls/1"},"html":{"href":"https://github.com/Ronnielol/Task-6/pull/1"},"issue":{"href":"https://api.github.com/repos/Ronnielol/Task-6/issues/1"},"comments":{"href":"https://api.github.com/repos/Ronnielol/Task-6/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Ronnielol/Task-6/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Ronnielol/Task-6/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ronnielol/Task-6/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Ronnielol/Task-6/statuses/65f4e57a97a08f14bd0526f98fd0e7762e99d2f8"}}}}
{"actor":{"display_login":"zverok"}}