{"action":"created","comment":{"url":"https://api.github.com/repos/Kacper3331/day_four/pulls/comments/70721527","id":70721527,"diff_hunk":"@@ -0,0 +1,16 @@\n+module Store\n+  class FetchBasket\n+    def call\n+      BASKET.map do |item|\n+      {\n+        product: item.fetch_product,\n+        id: item.id,\n+        quantity: item.quantity,\n+        price_with_vat: item.price_with_vat,\n+        total_price: item.total_price,\n+        total_price_with_vat: item.total_price_with_vat\n+      }","path":"lib/services/fetch_basket.rb","position":12,"original_position":12,"commit_id":"f4894f75a2576830afda69600f199c89a6d84441","original_commit_id":"f4894f75a2576830afda69600f199c89a6d84441","user":{"login":"Kacper3331","id":4428909,"avatar_url":"https://avatars.githubusercontent.com/u/4428909?v=3","gravatar_id":"","url":"https://api.github.com/users/Kacper3331","html_url":"https://github.com/Kacper3331","followers_url":"https://api.github.com/users/Kacper3331/followers","following_url":"https://api.github.com/users/Kacper3331/following{/other_user}","gists_url":"https://api.github.com/users/Kacper3331/gists{/gist_id}","starred_url":"https://api.github.com/users/Kacper3331/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kacper3331/subscriptions","organizations_url":"https://api.github.com/users/Kacper3331/orgs","repos_url":"https://api.github.com/users/Kacper3331/repos","events_url":"https://api.github.com/users/Kacper3331/events{/privacy}","received_events_url":"https://api.github.com/users/Kacper3331/received_events","type":"User","site_admin":false},"body":"@shadrk If you mean this line `id: item.id` then I use it in delete form. Product id in the column ID it's kind of pointless because when for example I delete one product then the numbers in this column won't be still like for example I have four items in basket and I remove item number 3.","created_at":"2016-07-13T22:39:24Z","updated_at":"2016-07-13T22:39:24Z","html_url":"https://github.com/Kacper3331/day_four/pull/3#discussion_r70721527","pull_request_url":"https://api.github.com/repos/Kacper3331/day_four/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Kacper3331/day_four/pulls/comments/70721527"},"html":{"href":"https://github.com/Kacper3331/day_four/pull/3#discussion_r70721527"},"pull_request":{"href":"https://api.github.com/repos/Kacper3331/day_four/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Kacper3331/day_four/pulls/3","id":77283512,"html_url":"https://github.com/Kacper3331/day_four/pull/3","diff_url":"https://github.com/Kacper3331/day_four/pull/3.diff","patch_url":"https://github.com/Kacper3331/day_four/pull/3.patch","issue_url":"https://api.github.com/repos/Kacper3331/day_four/issues/3","number":3,"state":"open","locked":false,"title":"Added sinatra to project with a lot of changes","user":{"login":"Kacper3331","id":4428909,"avatar_url":"https://avatars.githubusercontent.com/u/4428909?v=3","gravatar_id":"","url":"https://api.github.com/users/Kacper3331","html_url":"https://github.com/Kacper3331","followers_url":"https://api.github.com/users/Kacper3331/followers","following_url":"https://api.github.com/users/Kacper3331/following{/other_user}","gists_url":"https://api.github.com/users/Kacper3331/gists{/gist_id}","starred_url":"https://api.github.com/users/Kacper3331/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kacper3331/subscriptions","organizations_url":"https://api.github.com/users/Kacper3331/orgs","repos_url":"https://api.github.com/users/Kacper3331/repos","events_url":"https://api.github.com/users/Kacper3331/events{/privacy}","received_events_url":"https://api.github.com/users/Kacper3331/received_events","type":"User","site_admin":false},"body":"Please review it 😄 ","created_at":"2016-07-13T12:56:27Z","updated_at":"2016-07-13T22:39:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f122b87c7265bc22b588d2bd88c80112b167068e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Kacper3331/day_four/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Kacper3331/day_four/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Kacper3331/day_four/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kacper3331/day_four/issues/3/comments","statuses_url":"https://api.github.com/repos/Kacper3331/day_four/statuses/f4894f75a2576830afda69600f199c89a6d84441","head":{"label":"Kacper3331:working","ref":"working","sha":"f4894f75a2576830afda69600f199c89a6d84441","user":{"login":"Kacper3331","id":4428909,"avatar_url":"https://avatars.githubusercontent.com/u/4428909?v=3","gravatar_id":"","url":"https://api.github.com/users/Kacper3331","html_url":"https://github.com/Kacper3331","followers_url":"https://api.github.com/users/Kacper3331/followers","following_url":"https://api.github.com/users/Kacper3331/following{/other_user}","gists_url":"https://api.github.com/users/Kacper3331/gists{/gist_id}","starred_url":"https://api.github.com/users/Kacper3331/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kacper3331/subscriptions","organizations_url":"https://api.github.com/users/Kacper3331/orgs","repos_url":"https://api.github.com/users/Kacper3331/repos","events_url":"https://api.github.com/users/Kacper3331/events{/privacy}","received_events_url":"https://api.github.com/users/Kacper3331/received_events","type":"User","site_admin":false},"repo":{"id":62804393,"name":"day_four","full_name":"Kacper3331/day_four","owner":{"login":"Kacper3331","id":4428909,"avatar_url":"https://avatars.githubusercontent.com/u/4428909?v=3","gravatar_id":"","url":"https://api.github.com/users/Kacper3331","html_url":"https://github.com/Kacper3331","followers_url":"https://api.github.com/users/Kacper3331/followers","following_url":"https://api.github.com/users/Kacper3331/following{/other_user}","gists_url":"https://api.github.com/users/Kacper3331/gists{/gist_id}","starred_url":"https://api.github.com/users/Kacper3331/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kacper3331/subscriptions","organizations_url":"https://api.github.com/users/Kacper3331/orgs","repos_url":"https://api.github.com/users/Kacper3331/repos","events_url":"https://api.github.com/users/Kacper3331/events{/privacy}","received_events_url":"https://api.github.com/users/Kacper3331/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kacper3331/day_four","description":null,"fork":false,"url":"https://api.github.com/repos/Kacper3331/day_four","forks_url":"https://api.github.com/repos/Kacper3331/day_four/forks","keys_url":"https://api.github.com/repos/Kacper3331/day_four/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kacper3331/day_four/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kacper3331/day_four/teams","hooks_url":"https://api.github.com/repos/Kacper3331/day_four/hooks","issue_events_url":"https://api.github.com/repos/Kacper3331/day_four/issues/events{/number}","events_url":"https://api.github.com/repos/Kacper3331/day_four/events","assignees_url":"https://api.github.com/repos/Kacper3331/day_four/assignees{/user}","branches_url":"https://api.github.com/repos/Kacper3331/day_four/branches{/branch}","tags_url":"https://api.github.com/repos/Kacper3331/day_four/tags","blobs_url":"https://api.github.com/repos/Kacper3331/day_four/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kacper3331/day_four/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kacper3331/day_four/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kacper3331/day_four/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kacper3331/day_four/statuses/{sha}","languages_url":"https://api.github.com/repos/Kacper3331/day_four/languages","stargazers_url":"https://api.github.com/repos/Kacper3331/day_four/stargazers","contributors_url":"https://api.github.com/repos/Kacper3331/day_four/contributors","subscribers_url":"https://api.github.com/repos/Kacper3331/day_four/subscribers","subscription_url":"https://api.github.com/repos/Kacper3331/day_four/subscription","commits_url":"https://api.github.com/repos/Kacper3331/day_four/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kacper3331/day_four/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kacper3331/day_four/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kacper3331/day_four/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kacper3331/day_four/contents/{+path}","compare_url":"https://api.github.com/repos/Kacper3331/day_four/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kacper3331/day_four/merges","archive_url":"https://api.github.com/repos/Kacper3331/day_four/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kacper3331/day_four/downloads","issues_url":"https://api.github.com/repos/Kacper3331/day_four/issues{/number}","pulls_url":"https://api.github.com/repos/Kacper3331/day_four/pulls{/number}","milestones_url":"https://api.github.com/repos/Kacper3331/day_four/milestones{/number}","notifications_url":"https://api.github.com/repos/Kacper3331/day_four/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kacper3331/day_four/labels{/name}","releases_url":"https://api.github.com/repos/Kacper3331/day_four/releases{/id}","deployments_url":"https://api.github.com/repos/Kacper3331/day_four/deployments","created_at":"2016-07-07T12:15:56Z","updated_at":"2016-07-12T08:06:07Z","pushed_at":"2016-07-13T12:56:27Z","git_url":"git://github.com/Kacper3331/day_four.git","ssh_url":"git@github.com:Kacper3331/day_four.git","clone_url":"https://github.com/Kacper3331/day_four.git","svn_url":"https://github.com/Kacper3331/day_four","homepage":null,"size":39,"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":"Kacper3331:master","ref":"master","sha":"35d2f5d18f27a828fe3b5d6d09d6590945f51c0d","user":{"login":"Kacper3331","id":4428909,"avatar_url":"https://avatars.githubusercontent.com/u/4428909?v=3","gravatar_id":"","url":"https://api.github.com/users/Kacper3331","html_url":"https://github.com/Kacper3331","followers_url":"https://api.github.com/users/Kacper3331/followers","following_url":"https://api.github.com/users/Kacper3331/following{/other_user}","gists_url":"https://api.github.com/users/Kacper3331/gists{/gist_id}","starred_url":"https://api.github.com/users/Kacper3331/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kacper3331/subscriptions","organizations_url":"https://api.github.com/users/Kacper3331/orgs","repos_url":"https://api.github.com/users/Kacper3331/repos","events_url":"https://api.github.com/users/Kacper3331/events{/privacy}","received_events_url":"https://api.github.com/users/Kacper3331/received_events","type":"User","site_admin":false},"repo":{"id":62804393,"name":"day_four","full_name":"Kacper3331/day_four","owner":{"login":"Kacper3331","id":4428909,"avatar_url":"https://avatars.githubusercontent.com/u/4428909?v=3","gravatar_id":"","url":"https://api.github.com/users/Kacper3331","html_url":"https://github.com/Kacper3331","followers_url":"https://api.github.com/users/Kacper3331/followers","following_url":"https://api.github.com/users/Kacper3331/following{/other_user}","gists_url":"https://api.github.com/users/Kacper3331/gists{/gist_id}","starred_url":"https://api.github.com/users/Kacper3331/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kacper3331/subscriptions","organizations_url":"https://api.github.com/users/Kacper3331/orgs","repos_url":"https://api.github.com/users/Kacper3331/repos","events_url":"https://api.github.com/users/Kacper3331/events{/privacy}","received_events_url":"https://api.github.com/users/Kacper3331/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kacper3331/day_four","description":null,"fork":false,"url":"https://api.github.com/repos/Kacper3331/day_four","forks_url":"https://api.github.com/repos/Kacper3331/day_four/forks","keys_url":"https://api.github.com/repos/Kacper3331/day_four/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kacper3331/day_four/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kacper3331/day_four/teams","hooks_url":"https://api.github.com/repos/Kacper3331/day_four/hooks","issue_events_url":"https://api.github.com/repos/Kacper3331/day_four/issues/events{/number}","events_url":"https://api.github.com/repos/Kacper3331/day_four/events","assignees_url":"https://api.github.com/repos/Kacper3331/day_four/assignees{/user}","branches_url":"https://api.github.com/repos/Kacper3331/day_four/branches{/branch}","tags_url":"https://api.github.com/repos/Kacper3331/day_four/tags","blobs_url":"https://api.github.com/repos/Kacper3331/day_four/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kacper3331/day_four/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kacper3331/day_four/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kacper3331/day_four/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kacper3331/day_four/statuses/{sha}","languages_url":"https://api.github.com/repos/Kacper3331/day_four/languages","stargazers_url":"https://api.github.com/repos/Kacper3331/day_four/stargazers","contributors_url":"https://api.github.com/repos/Kacper3331/day_four/contributors","subscribers_url":"https://api.github.com/repos/Kacper3331/day_four/subscribers","subscription_url":"https://api.github.com/repos/Kacper3331/day_four/subscription","commits_url":"https://api.github.com/repos/Kacper3331/day_four/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kacper3331/day_four/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kacper3331/day_four/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kacper3331/day_four/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kacper3331/day_four/contents/{+path}","compare_url":"https://api.github.com/repos/Kacper3331/day_four/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kacper3331/day_four/merges","archive_url":"https://api.github.com/repos/Kacper3331/day_four/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kacper3331/day_four/downloads","issues_url":"https://api.github.com/repos/Kacper3331/day_four/issues{/number}","pulls_url":"https://api.github.com/repos/Kacper3331/day_four/pulls{/number}","milestones_url":"https://api.github.com/repos/Kacper3331/day_four/milestones{/number}","notifications_url":"https://api.github.com/repos/Kacper3331/day_four/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kacper3331/day_four/labels{/name}","releases_url":"https://api.github.com/repos/Kacper3331/day_four/releases{/id}","deployments_url":"https://api.github.com/repos/Kacper3331/day_four/deployments","created_at":"2016-07-07T12:15:56Z","updated_at":"2016-07-12T08:06:07Z","pushed_at":"2016-07-13T12:56:27Z","git_url":"git://github.com/Kacper3331/day_four.git","ssh_url":"git@github.com:Kacper3331/day_four.git","clone_url":"https://github.com/Kacper3331/day_four.git","svn_url":"https://github.com/Kacper3331/day_four","homepage":null,"size":39,"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/Kacper3331/day_four/pulls/3"},"html":{"href":"https://github.com/Kacper3331/day_four/pull/3"},"issue":{"href":"https://api.github.com/repos/Kacper3331/day_four/issues/3"},"comments":{"href":"https://api.github.com/repos/Kacper3331/day_four/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Kacper3331/day_four/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Kacper3331/day_four/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kacper3331/day_four/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Kacper3331/day_four/statuses/f4894f75a2576830afda69600f199c89a6d84441"}}}}
{"actor":{"display_login":"Kacper3331"}}