{"action":"created","comment":{"url":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls/comments/70617244","id":70617244,"diff_hunk":"@@ -3,9 +3,8 @@ class CountBasketValueNetto\n     def call\n       sum = 0\n \n-      BASKET.each do |basket|\n-        product = FetchProduct.new.call(basket.product_id)\n-        sum += product.price * basket.quantity\n+      BASKET.each do |item|\n+        sum += FetchProduct.new.call(item.product_id).price * item.quantity\n       end\n \n       sum","path":"lib/services/count_basket_value_netto.rb","position":null,"original_position":11,"commit_id":"a80e59a3df269d39294d16e630dbf22542a76aa3","original_commit_id":"a80e59a3df269d39294d16e630dbf22542a76aa3","user":{"login":"smt116","id":619324,"avatar_url":"https://avatars.githubusercontent.com/u/619324?v=3","gravatar_id":"","url":"https://api.github.com/users/smt116","html_url":"https://github.com/smt116","followers_url":"https://api.github.com/users/smt116/followers","following_url":"https://api.github.com/users/smt116/following{/other_user}","gists_url":"https://api.github.com/users/smt116/gists{/gist_id}","starred_url":"https://api.github.com/users/smt116/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smt116/subscriptions","organizations_url":"https://api.github.com/users/smt116/orgs","repos_url":"https://api.github.com/users/smt116/repos","events_url":"https://api.github.com/users/smt116/events{/privacy}","received_events_url":"https://api.github.com/users/smt116/received_events","type":"User","site_admin":false},"body":"Do you need some further explanation on this?","created_at":"2016-07-13T12:43:41Z","updated_at":"2016-07-13T12:43:42Z","html_url":"https://github.com/kamil506/ruby-shop-oop/pull/2#discussion_r70617244","pull_request_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls/comments/70617244"},"html":{"href":"https://github.com/kamil506/ruby-shop-oop/pull/2#discussion_r70617244"},"pull_request":{"href":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls/2","id":77138902,"html_url":"https://github.com/kamil506/ruby-shop-oop/pull/2","diff_url":"https://github.com/kamil506/ruby-shop-oop/pull/2.diff","patch_url":"https://github.com/kamil506/ruby-shop-oop/pull/2.patch","issue_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/issues/2","number":2,"state":"open","locked":false,"title":"Shop skeleton beta","user":{"login":"kamil506","id":14319596,"avatar_url":"https://avatars.githubusercontent.com/u/14319596?v=3","gravatar_id":"","url":"https://api.github.com/users/kamil506","html_url":"https://github.com/kamil506","followers_url":"https://api.github.com/users/kamil506/followers","following_url":"https://api.github.com/users/kamil506/following{/other_user}","gists_url":"https://api.github.com/users/kamil506/gists{/gist_id}","starred_url":"https://api.github.com/users/kamil506/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamil506/subscriptions","organizations_url":"https://api.github.com/users/kamil506/orgs","repos_url":"https://api.github.com/users/kamil506/repos","events_url":"https://api.github.com/users/kamil506/events{/privacy}","received_events_url":"https://api.github.com/users/kamil506/received_events","type":"User","site_admin":false},"body":"@gotar","created_at":"2016-07-12T15:18:26Z","updated_at":"2016-07-13T12:43:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"554472c46fd1e8f82e697931e4e9dcc4c1b2dae8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls/2/commits","review_comments_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls/2/comments","review_comment_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/issues/2/comments","statuses_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/statuses/a80e59a3df269d39294d16e630dbf22542a76aa3","head":{"label":"kamil506:second","ref":"second","sha":"a80e59a3df269d39294d16e630dbf22542a76aa3","user":{"login":"kamil506","id":14319596,"avatar_url":"https://avatars.githubusercontent.com/u/14319596?v=3","gravatar_id":"","url":"https://api.github.com/users/kamil506","html_url":"https://github.com/kamil506","followers_url":"https://api.github.com/users/kamil506/followers","following_url":"https://api.github.com/users/kamil506/following{/other_user}","gists_url":"https://api.github.com/users/kamil506/gists{/gist_id}","starred_url":"https://api.github.com/users/kamil506/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamil506/subscriptions","organizations_url":"https://api.github.com/users/kamil506/orgs","repos_url":"https://api.github.com/users/kamil506/repos","events_url":"https://api.github.com/users/kamil506/events{/privacy}","received_events_url":"https://api.github.com/users/kamil506/received_events","type":"User","site_admin":false},"repo":{"id":62721967,"name":"ruby-shop-oop","full_name":"kamil506/ruby-shop-oop","owner":{"login":"kamil506","id":14319596,"avatar_url":"https://avatars.githubusercontent.com/u/14319596?v=3","gravatar_id":"","url":"https://api.github.com/users/kamil506","html_url":"https://github.com/kamil506","followers_url":"https://api.github.com/users/kamil506/followers","following_url":"https://api.github.com/users/kamil506/following{/other_user}","gists_url":"https://api.github.com/users/kamil506/gists{/gist_id}","starred_url":"https://api.github.com/users/kamil506/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamil506/subscriptions","organizations_url":"https://api.github.com/users/kamil506/orgs","repos_url":"https://api.github.com/users/kamil506/repos","events_url":"https://api.github.com/users/kamil506/events{/privacy}","received_events_url":"https://api.github.com/users/kamil506/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kamil506/ruby-shop-oop","description":null,"fork":false,"url":"https://api.github.com/repos/kamil506/ruby-shop-oop","forks_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/forks","keys_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/teams","hooks_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/hooks","issue_events_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/issues/events{/number}","events_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/events","assignees_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/assignees{/user}","branches_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/branches{/branch}","tags_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/tags","blobs_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/git/refs{/sha}","trees_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/statuses/{sha}","languages_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/languages","stargazers_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/stargazers","contributors_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/contributors","subscribers_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/subscribers","subscription_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/subscription","commits_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/commits{/sha}","git_commits_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/git/commits{/sha}","comments_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/comments{/number}","issue_comment_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/issues/comments{/number}","contents_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/contents/{+path}","compare_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/merges","archive_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/downloads","issues_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/issues{/number}","pulls_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls{/number}","milestones_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/milestones{/number}","notifications_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/labels{/name}","releases_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/releases{/id}","deployments_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/deployments","created_at":"2016-07-06T13:12:23Z","updated_at":"2016-07-06T13:15:12Z","pushed_at":"2016-07-13T12:20:02Z","git_url":"git://github.com/kamil506/ruby-shop-oop.git","ssh_url":"git@github.com:kamil506/ruby-shop-oop.git","clone_url":"https://github.com/kamil506/ruby-shop-oop.git","svn_url":"https://github.com/kamil506/ruby-shop-oop","homepage":null,"size":31,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"kamil506:master","ref":"master","sha":"ed3fac164d6111e5c88824a6351e59bd3f2147cd","user":{"login":"kamil506","id":14319596,"avatar_url":"https://avatars.githubusercontent.com/u/14319596?v=3","gravatar_id":"","url":"https://api.github.com/users/kamil506","html_url":"https://github.com/kamil506","followers_url":"https://api.github.com/users/kamil506/followers","following_url":"https://api.github.com/users/kamil506/following{/other_user}","gists_url":"https://api.github.com/users/kamil506/gists{/gist_id}","starred_url":"https://api.github.com/users/kamil506/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamil506/subscriptions","organizations_url":"https://api.github.com/users/kamil506/orgs","repos_url":"https://api.github.com/users/kamil506/repos","events_url":"https://api.github.com/users/kamil506/events{/privacy}","received_events_url":"https://api.github.com/users/kamil506/received_events","type":"User","site_admin":false},"repo":{"id":62721967,"name":"ruby-shop-oop","full_name":"kamil506/ruby-shop-oop","owner":{"login":"kamil506","id":14319596,"avatar_url":"https://avatars.githubusercontent.com/u/14319596?v=3","gravatar_id":"","url":"https://api.github.com/users/kamil506","html_url":"https://github.com/kamil506","followers_url":"https://api.github.com/users/kamil506/followers","following_url":"https://api.github.com/users/kamil506/following{/other_user}","gists_url":"https://api.github.com/users/kamil506/gists{/gist_id}","starred_url":"https://api.github.com/users/kamil506/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamil506/subscriptions","organizations_url":"https://api.github.com/users/kamil506/orgs","repos_url":"https://api.github.com/users/kamil506/repos","events_url":"https://api.github.com/users/kamil506/events{/privacy}","received_events_url":"https://api.github.com/users/kamil506/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kamil506/ruby-shop-oop","description":null,"fork":false,"url":"https://api.github.com/repos/kamil506/ruby-shop-oop","forks_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/forks","keys_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/teams","hooks_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/hooks","issue_events_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/issues/events{/number}","events_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/events","assignees_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/assignees{/user}","branches_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/branches{/branch}","tags_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/tags","blobs_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/git/refs{/sha}","trees_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/statuses/{sha}","languages_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/languages","stargazers_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/stargazers","contributors_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/contributors","subscribers_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/subscribers","subscription_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/subscription","commits_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/commits{/sha}","git_commits_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/git/commits{/sha}","comments_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/comments{/number}","issue_comment_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/issues/comments{/number}","contents_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/contents/{+path}","compare_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/merges","archive_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/downloads","issues_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/issues{/number}","pulls_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls{/number}","milestones_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/milestones{/number}","notifications_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/labels{/name}","releases_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/releases{/id}","deployments_url":"https://api.github.com/repos/kamil506/ruby-shop-oop/deployments","created_at":"2016-07-06T13:12:23Z","updated_at":"2016-07-06T13:15:12Z","pushed_at":"2016-07-13T12:20:02Z","git_url":"git://github.com/kamil506/ruby-shop-oop.git","ssh_url":"git@github.com:kamil506/ruby-shop-oop.git","clone_url":"https://github.com/kamil506/ruby-shop-oop.git","svn_url":"https://github.com/kamil506/ruby-shop-oop","homepage":null,"size":31,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls/2"},"html":{"href":"https://github.com/kamil506/ruby-shop-oop/pull/2"},"issue":{"href":"https://api.github.com/repos/kamil506/ruby-shop-oop/issues/2"},"comments":{"href":"https://api.github.com/repos/kamil506/ruby-shop-oop/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kamil506/ruby-shop-oop/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/kamil506/ruby-shop-oop/statuses/a80e59a3df269d39294d16e630dbf22542a76aa3"}}}}
{"actor":{"display_login":"smt116"}}