{"action":"created","comment":{"url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/comments/30052697","id":30052697,"diff_hunk":"@@ -0,0 +1,20 @@\n+class ComputerItem\n+  attr_accessor :name_item, :price, :quantity\n+  def initialize(name_item, price, quantity = 1)\n+    @name_item = name_item\n+    @price = price\n+    if  @quantity != 1 then @quantity = quantity end","path":"roxana/shop/computer_item.rb","position":6,"original_position":6,"commit_id":"719fe0c500a646882bbfe421c477ec4c87eed05f","original_commit_id":"719fe0c500a646882bbfe421c477ec4c87eed05f","user":{"login":"beornborn","id":1485786,"avatar_url":"https://avatars.githubusercontent.com/u/1485786?v=3","gravatar_id":"","url":"https://api.github.com/users/beornborn","html_url":"https://github.com/beornborn","followers_url":"https://api.github.com/users/beornborn/followers","following_url":"https://api.github.com/users/beornborn/following{/other_user}","gists_url":"https://api.github.com/users/beornborn/gists{/gist_id}","starred_url":"https://api.github.com/users/beornborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beornborn/subscriptions","organizations_url":"https://api.github.com/users/beornborn/orgs","repos_url":"https://api.github.com/users/beornborn/repos","events_url":"https://api.github.com/users/beornborn/events{/privacy}","received_events_url":"https://api.github.com/users/beornborn/received_events","type":"User","site_admin":false},"body":"я против этого ничего не имею, я имею в виду, что если quantity будет 1 или отсутсовать, то @quantity будет nil","created_at":"2015-05-11T16:01:37Z","updated_at":"2015-05-11T16:01:37Z","html_url":"https://github.com/kiev-ruby/hometasks/pull/1#discussion_r30052697","pull_request_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/comments/30052697"},"html":{"href":"https://github.com/kiev-ruby/hometasks/pull/1#discussion_r30052697"},"pull_request":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/1","id":35076909,"html_url":"https://github.com/kiev-ruby/hometasks/pull/1","diff_url":"https://github.com/kiev-ruby/hometasks/pull/1.diff","patch_url":"https://github.com/kiev-ruby/hometasks/pull/1.patch","issue_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues/1","number":1,"state":"closed","locked":false,"title":"shop","user":{"login":"Roxana1989","id":11198591,"avatar_url":"https://avatars.githubusercontent.com/u/11198591?v=3","gravatar_id":"","url":"https://api.github.com/users/Roxana1989","html_url":"https://github.com/Roxana1989","followers_url":"https://api.github.com/users/Roxana1989/followers","following_url":"https://api.github.com/users/Roxana1989/following{/other_user}","gists_url":"https://api.github.com/users/Roxana1989/gists{/gist_id}","starred_url":"https://api.github.com/users/Roxana1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roxana1989/subscriptions","organizations_url":"https://api.github.com/users/Roxana1989/orgs","repos_url":"https://api.github.com/users/Roxana1989/repos","events_url":"https://api.github.com/users/Roxana1989/events{/privacy}","received_events_url":"https://api.github.com/users/Roxana1989/received_events","type":"User","site_admin":false},"body":"A new version of shop.","created_at":"2015-05-10T03:40:03Z","updated_at":"2015-05-11T16:01:37Z","closed_at":"2015-05-11T15:43:33Z","merged_at":"2015-05-11T15:43:33Z","merge_commit_sha":"f749032134434fcf416c4166b3a9606d533c0f91","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/1/commits","review_comments_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/1/comments","review_comment_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues/1/comments","statuses_url":"https://api.github.com/repos/kiev-ruby/hometasks/statuses/719fe0c500a646882bbfe421c477ec4c87eed05f","head":{"label":"kiev-ruby:Roxana","ref":"Roxana","sha":"719fe0c500a646882bbfe421c477ec4c87eed05f","user":{"login":"kiev-ruby","id":11543510,"avatar_url":"https://avatars.githubusercontent.com/u/11543510?v=3","gravatar_id":"","url":"https://api.github.com/users/kiev-ruby","html_url":"https://github.com/kiev-ruby","followers_url":"https://api.github.com/users/kiev-ruby/followers","following_url":"https://api.github.com/users/kiev-ruby/following{/other_user}","gists_url":"https://api.github.com/users/kiev-ruby/gists{/gist_id}","starred_url":"https://api.github.com/users/kiev-ruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiev-ruby/subscriptions","organizations_url":"https://api.github.com/users/kiev-ruby/orgs","repos_url":"https://api.github.com/users/kiev-ruby/repos","events_url":"https://api.github.com/users/kiev-ruby/events{/privacy}","received_events_url":"https://api.github.com/users/kiev-ruby/received_events","type":"Organization","site_admin":false},"repo":{"id":35303414,"name":"hometasks","full_name":"kiev-ruby/hometasks","owner":{"login":"kiev-ruby","id":11543510,"avatar_url":"https://avatars.githubusercontent.com/u/11543510?v=3","gravatar_id":"","url":"https://api.github.com/users/kiev-ruby","html_url":"https://github.com/kiev-ruby","followers_url":"https://api.github.com/users/kiev-ruby/followers","following_url":"https://api.github.com/users/kiev-ruby/following{/other_user}","gists_url":"https://api.github.com/users/kiev-ruby/gists{/gist_id}","starred_url":"https://api.github.com/users/kiev-ruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiev-ruby/subscriptions","organizations_url":"https://api.github.com/users/kiev-ruby/orgs","repos_url":"https://api.github.com/users/kiev-ruby/repos","events_url":"https://api.github.com/users/kiev-ruby/events{/privacy}","received_events_url":"https://api.github.com/users/kiev-ruby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kiev-ruby/hometasks","description":"","fork":false,"url":"https://api.github.com/repos/kiev-ruby/hometasks","forks_url":"https://api.github.com/repos/kiev-ruby/hometasks/forks","keys_url":"https://api.github.com/repos/kiev-ruby/hometasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiev-ruby/hometasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiev-ruby/hometasks/teams","hooks_url":"https://api.github.com/repos/kiev-ruby/hometasks/hooks","issue_events_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues/events{/number}","events_url":"https://api.github.com/repos/kiev-ruby/hometasks/events","assignees_url":"https://api.github.com/repos/kiev-ruby/hometasks/assignees{/user}","branches_url":"https://api.github.com/repos/kiev-ruby/hometasks/branches{/branch}","tags_url":"https://api.github.com/repos/kiev-ruby/hometasks/tags","blobs_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiev-ruby/hometasks/statuses/{sha}","languages_url":"https://api.github.com/repos/kiev-ruby/hometasks/languages","stargazers_url":"https://api.github.com/repos/kiev-ruby/hometasks/stargazers","contributors_url":"https://api.github.com/repos/kiev-ruby/hometasks/contributors","subscribers_url":"https://api.github.com/repos/kiev-ruby/hometasks/subscribers","subscription_url":"https://api.github.com/repos/kiev-ruby/hometasks/subscription","commits_url":"https://api.github.com/repos/kiev-ruby/hometasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiev-ruby/hometasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiev-ruby/hometasks/contents/{+path}","compare_url":"https://api.github.com/repos/kiev-ruby/hometasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiev-ruby/hometasks/merges","archive_url":"https://api.github.com/repos/kiev-ruby/hometasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiev-ruby/hometasks/downloads","issues_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues{/number}","pulls_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls{/number}","milestones_url":"https://api.github.com/repos/kiev-ruby/hometasks/milestones{/number}","notifications_url":"https://api.github.com/repos/kiev-ruby/hometasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiev-ruby/hometasks/labels{/name}","releases_url":"https://api.github.com/repos/kiev-ruby/hometasks/releases{/id}","created_at":"2015-05-08T21:49:55Z","updated_at":"2015-05-11T15:43:34Z","pushed_at":"2015-05-11T15:43:34Z","git_url":"git://github.com/kiev-ruby/hometasks.git","ssh_url":"git@github.com:kiev-ruby/hometasks.git","clone_url":"https://github.com/kiev-ruby/hometasks.git","svn_url":"https://github.com/kiev-ruby/hometasks","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"kiev-ruby:master","ref":"master","sha":"21d3c92040cf2cac699aad54e09f939bbf93183c","user":{"login":"kiev-ruby","id":11543510,"avatar_url":"https://avatars.githubusercontent.com/u/11543510?v=3","gravatar_id":"","url":"https://api.github.com/users/kiev-ruby","html_url":"https://github.com/kiev-ruby","followers_url":"https://api.github.com/users/kiev-ruby/followers","following_url":"https://api.github.com/users/kiev-ruby/following{/other_user}","gists_url":"https://api.github.com/users/kiev-ruby/gists{/gist_id}","starred_url":"https://api.github.com/users/kiev-ruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiev-ruby/subscriptions","organizations_url":"https://api.github.com/users/kiev-ruby/orgs","repos_url":"https://api.github.com/users/kiev-ruby/repos","events_url":"https://api.github.com/users/kiev-ruby/events{/privacy}","received_events_url":"https://api.github.com/users/kiev-ruby/received_events","type":"Organization","site_admin":false},"repo":{"id":35303414,"name":"hometasks","full_name":"kiev-ruby/hometasks","owner":{"login":"kiev-ruby","id":11543510,"avatar_url":"https://avatars.githubusercontent.com/u/11543510?v=3","gravatar_id":"","url":"https://api.github.com/users/kiev-ruby","html_url":"https://github.com/kiev-ruby","followers_url":"https://api.github.com/users/kiev-ruby/followers","following_url":"https://api.github.com/users/kiev-ruby/following{/other_user}","gists_url":"https://api.github.com/users/kiev-ruby/gists{/gist_id}","starred_url":"https://api.github.com/users/kiev-ruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiev-ruby/subscriptions","organizations_url":"https://api.github.com/users/kiev-ruby/orgs","repos_url":"https://api.github.com/users/kiev-ruby/repos","events_url":"https://api.github.com/users/kiev-ruby/events{/privacy}","received_events_url":"https://api.github.com/users/kiev-ruby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kiev-ruby/hometasks","description":"","fork":false,"url":"https://api.github.com/repos/kiev-ruby/hometasks","forks_url":"https://api.github.com/repos/kiev-ruby/hometasks/forks","keys_url":"https://api.github.com/repos/kiev-ruby/hometasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiev-ruby/hometasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiev-ruby/hometasks/teams","hooks_url":"https://api.github.com/repos/kiev-ruby/hometasks/hooks","issue_events_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues/events{/number}","events_url":"https://api.github.com/repos/kiev-ruby/hometasks/events","assignees_url":"https://api.github.com/repos/kiev-ruby/hometasks/assignees{/user}","branches_url":"https://api.github.com/repos/kiev-ruby/hometasks/branches{/branch}","tags_url":"https://api.github.com/repos/kiev-ruby/hometasks/tags","blobs_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiev-ruby/hometasks/statuses/{sha}","languages_url":"https://api.github.com/repos/kiev-ruby/hometasks/languages","stargazers_url":"https://api.github.com/repos/kiev-ruby/hometasks/stargazers","contributors_url":"https://api.github.com/repos/kiev-ruby/hometasks/contributors","subscribers_url":"https://api.github.com/repos/kiev-ruby/hometasks/subscribers","subscription_url":"https://api.github.com/repos/kiev-ruby/hometasks/subscription","commits_url":"https://api.github.com/repos/kiev-ruby/hometasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiev-ruby/hometasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiev-ruby/hometasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiev-ruby/hometasks/contents/{+path}","compare_url":"https://api.github.com/repos/kiev-ruby/hometasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiev-ruby/hometasks/merges","archive_url":"https://api.github.com/repos/kiev-ruby/hometasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiev-ruby/hometasks/downloads","issues_url":"https://api.github.com/repos/kiev-ruby/hometasks/issues{/number}","pulls_url":"https://api.github.com/repos/kiev-ruby/hometasks/pulls{/number}","milestones_url":"https://api.github.com/repos/kiev-ruby/hometasks/milestones{/number}","notifications_url":"https://api.github.com/repos/kiev-ruby/hometasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiev-ruby/hometasks/labels{/name}","releases_url":"https://api.github.com/repos/kiev-ruby/hometasks/releases{/id}","created_at":"2015-05-08T21:49:55Z","updated_at":"2015-05-11T15:43:34Z","pushed_at":"2015-05-11T15:43:34Z","git_url":"git://github.com/kiev-ruby/hometasks.git","ssh_url":"git@github.com:kiev-ruby/hometasks.git","clone_url":"https://github.com/kiev-ruby/hometasks.git","svn_url":"https://github.com/kiev-ruby/hometasks","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/1"},"html":{"href":"https://github.com/kiev-ruby/hometasks/pull/1"},"issue":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/issues/1"},"comments":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/kiev-ruby/hometasks/statuses/719fe0c500a646882bbfe421c477ec4c87eed05f"}}}}