{"action":"created","comment":{"url":"https://api.github.com/repos/khanh227/rubytest/pulls/comments/44894144","id":44894144,"diff_hunk":"@@ -0,0 +1,40 @@\n+class Billing\n+  attr_accessor :data_input\n+\n+  def initialize(items)\n+    @data_input = items\n+  end\n+\n+  def data_output\n+    data_output = []\n+    loop_data do |quantity, product, compute|\n+      data_output << {:quantity => quantity, :name => product.name, :price => compute.calc_total}\n+    end\n+    data_output\n+  end\n+\n+  def calc_sales_taxes\n+    sales_taxes = 0.0\n+    loop_data do |quantity, product, compute|","path":"lib/billing.rb","position":18,"original_position":18,"commit_id":"07f8e87e0acb97f7044e38f95fda99391b28c32b","original_commit_id":"07f8e87e0acb97f7044e38f95fda99391b28c32b","user":{"login":"ktoanlba89","id":4002252,"avatar_url":"https://avatars.githubusercontent.com/u/4002252?v=3","gravatar_id":"","url":"https://api.github.com/users/ktoanlba89","html_url":"https://github.com/ktoanlba89","followers_url":"https://api.github.com/users/ktoanlba89/followers","following_url":"https://api.github.com/users/ktoanlba89/following{/other_user}","gists_url":"https://api.github.com/users/ktoanlba89/gists{/gist_id}","starred_url":"https://api.github.com/users/ktoanlba89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktoanlba89/subscriptions","organizations_url":"https://api.github.com/users/ktoanlba89/orgs","repos_url":"https://api.github.com/users/ktoanlba89/repos","events_url":"https://api.github.com/users/ktoanlba89/events{/privacy}","received_events_url":"https://api.github.com/users/ktoanlba89/received_events","type":"User","site_admin":false},"body":"biến nào k dùng thì chuyển thành _\r\n`loop_data do |_, _, compute|`","created_at":"2015-11-16T07:18:08Z","updated_at":"2015-11-16T07:18:08Z","html_url":"https://github.com/khanh227/rubytest/pull/2#discussion_r44894144","pull_request_url":"https://api.github.com/repos/khanh227/rubytest/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/khanh227/rubytest/pulls/comments/44894144"},"html":{"href":"https://github.com/khanh227/rubytest/pull/2#discussion_r44894144"},"pull_request":{"href":"https://api.github.com/repos/khanh227/rubytest/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/khanh227/rubytest/pulls/2","id":50467401,"html_url":"https://github.com/khanh227/rubytest/pull/2","diff_url":"https://github.com/khanh227/rubytest/pull/2.diff","patch_url":"https://github.com/khanh227/rubytest/pull/2.patch","issue_url":"https://api.github.com/repos/khanh227/rubytest/issues/2","number":2,"state":"open","locked":false,"title":"Jr test","user":{"login":"khanh227","id":15766927,"avatar_url":"https://avatars.githubusercontent.com/u/15766927?v=3","gravatar_id":"","url":"https://api.github.com/users/khanh227","html_url":"https://github.com/khanh227","followers_url":"https://api.github.com/users/khanh227/followers","following_url":"https://api.github.com/users/khanh227/following{/other_user}","gists_url":"https://api.github.com/users/khanh227/gists{/gist_id}","starred_url":"https://api.github.com/users/khanh227/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khanh227/subscriptions","organizations_url":"https://api.github.com/users/khanh227/orgs","repos_url":"https://api.github.com/users/khanh227/repos","events_url":"https://api.github.com/users/khanh227/events{/privacy}","received_events_url":"https://api.github.com/users/khanh227/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-12T03:18:28Z","updated_at":"2015-11-16T07:18:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/khanh227/rubytest/pulls/2/commits","review_comments_url":"https://api.github.com/repos/khanh227/rubytest/pulls/2/comments","review_comment_url":"https://api.github.com/repos/khanh227/rubytest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/khanh227/rubytest/issues/2/comments","statuses_url":"https://api.github.com/repos/khanh227/rubytest/statuses/07f8e87e0acb97f7044e38f95fda99391b28c32b","head":{"label":"khanh227:jr-test","ref":"jr-test","sha":"07f8e87e0acb97f7044e38f95fda99391b28c32b","user":{"login":"khanh227","id":15766927,"avatar_url":"https://avatars.githubusercontent.com/u/15766927?v=3","gravatar_id":"","url":"https://api.github.com/users/khanh227","html_url":"https://github.com/khanh227","followers_url":"https://api.github.com/users/khanh227/followers","following_url":"https://api.github.com/users/khanh227/following{/other_user}","gists_url":"https://api.github.com/users/khanh227/gists{/gist_id}","starred_url":"https://api.github.com/users/khanh227/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khanh227/subscriptions","organizations_url":"https://api.github.com/users/khanh227/orgs","repos_url":"https://api.github.com/users/khanh227/repos","events_url":"https://api.github.com/users/khanh227/events{/privacy}","received_events_url":"https://api.github.com/users/khanh227/received_events","type":"User","site_admin":false},"repo":{"id":45891797,"name":"rubytest","full_name":"khanh227/rubytest","owner":{"login":"khanh227","id":15766927,"avatar_url":"https://avatars.githubusercontent.com/u/15766927?v=3","gravatar_id":"","url":"https://api.github.com/users/khanh227","html_url":"https://github.com/khanh227","followers_url":"https://api.github.com/users/khanh227/followers","following_url":"https://api.github.com/users/khanh227/following{/other_user}","gists_url":"https://api.github.com/users/khanh227/gists{/gist_id}","starred_url":"https://api.github.com/users/khanh227/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khanh227/subscriptions","organizations_url":"https://api.github.com/users/khanh227/orgs","repos_url":"https://api.github.com/users/khanh227/repos","events_url":"https://api.github.com/users/khanh227/events{/privacy}","received_events_url":"https://api.github.com/users/khanh227/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/khanh227/rubytest","description":"rubytest","fork":false,"url":"https://api.github.com/repos/khanh227/rubytest","forks_url":"https://api.github.com/repos/khanh227/rubytest/forks","keys_url":"https://api.github.com/repos/khanh227/rubytest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/khanh227/rubytest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/khanh227/rubytest/teams","hooks_url":"https://api.github.com/repos/khanh227/rubytest/hooks","issue_events_url":"https://api.github.com/repos/khanh227/rubytest/issues/events{/number}","events_url":"https://api.github.com/repos/khanh227/rubytest/events","assignees_url":"https://api.github.com/repos/khanh227/rubytest/assignees{/user}","branches_url":"https://api.github.com/repos/khanh227/rubytest/branches{/branch}","tags_url":"https://api.github.com/repos/khanh227/rubytest/tags","blobs_url":"https://api.github.com/repos/khanh227/rubytest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/khanh227/rubytest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/khanh227/rubytest/git/refs{/sha}","trees_url":"https://api.github.com/repos/khanh227/rubytest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/khanh227/rubytest/statuses/{sha}","languages_url":"https://api.github.com/repos/khanh227/rubytest/languages","stargazers_url":"https://api.github.com/repos/khanh227/rubytest/stargazers","contributors_url":"https://api.github.com/repos/khanh227/rubytest/contributors","subscribers_url":"https://api.github.com/repos/khanh227/rubytest/subscribers","subscription_url":"https://api.github.com/repos/khanh227/rubytest/subscription","commits_url":"https://api.github.com/repos/khanh227/rubytest/commits{/sha}","git_commits_url":"https://api.github.com/repos/khanh227/rubytest/git/commits{/sha}","comments_url":"https://api.github.com/repos/khanh227/rubytest/comments{/number}","issue_comment_url":"https://api.github.com/repos/khanh227/rubytest/issues/comments{/number}","contents_url":"https://api.github.com/repos/khanh227/rubytest/contents/{+path}","compare_url":"https://api.github.com/repos/khanh227/rubytest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/khanh227/rubytest/merges","archive_url":"https://api.github.com/repos/khanh227/rubytest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/khanh227/rubytest/downloads","issues_url":"https://api.github.com/repos/khanh227/rubytest/issues{/number}","pulls_url":"https://api.github.com/repos/khanh227/rubytest/pulls{/number}","milestones_url":"https://api.github.com/repos/khanh227/rubytest/milestones{/number}","notifications_url":"https://api.github.com/repos/khanh227/rubytest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/khanh227/rubytest/labels{/name}","releases_url":"https://api.github.com/repos/khanh227/rubytest/releases{/id}","created_at":"2015-11-10T06:15:48Z","updated_at":"2015-11-10T06:23:51Z","pushed_at":"2015-11-16T06:50:52Z","git_url":"git://github.com/khanh227/rubytest.git","ssh_url":"git@github.com:khanh227/rubytest.git","clone_url":"https://github.com/khanh227/rubytest.git","svn_url":"https://github.com/khanh227/rubytest","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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"khanh227:develop","ref":"develop","sha":"5920517464d1955fd448ad04968bbe3ad456e1a3","user":{"login":"khanh227","id":15766927,"avatar_url":"https://avatars.githubusercontent.com/u/15766927?v=3","gravatar_id":"","url":"https://api.github.com/users/khanh227","html_url":"https://github.com/khanh227","followers_url":"https://api.github.com/users/khanh227/followers","following_url":"https://api.github.com/users/khanh227/following{/other_user}","gists_url":"https://api.github.com/users/khanh227/gists{/gist_id}","starred_url":"https://api.github.com/users/khanh227/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khanh227/subscriptions","organizations_url":"https://api.github.com/users/khanh227/orgs","repos_url":"https://api.github.com/users/khanh227/repos","events_url":"https://api.github.com/users/khanh227/events{/privacy}","received_events_url":"https://api.github.com/users/khanh227/received_events","type":"User","site_admin":false},"repo":{"id":45891797,"name":"rubytest","full_name":"khanh227/rubytest","owner":{"login":"khanh227","id":15766927,"avatar_url":"https://avatars.githubusercontent.com/u/15766927?v=3","gravatar_id":"","url":"https://api.github.com/users/khanh227","html_url":"https://github.com/khanh227","followers_url":"https://api.github.com/users/khanh227/followers","following_url":"https://api.github.com/users/khanh227/following{/other_user}","gists_url":"https://api.github.com/users/khanh227/gists{/gist_id}","starred_url":"https://api.github.com/users/khanh227/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khanh227/subscriptions","organizations_url":"https://api.github.com/users/khanh227/orgs","repos_url":"https://api.github.com/users/khanh227/repos","events_url":"https://api.github.com/users/khanh227/events{/privacy}","received_events_url":"https://api.github.com/users/khanh227/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/khanh227/rubytest","description":"rubytest","fork":false,"url":"https://api.github.com/repos/khanh227/rubytest","forks_url":"https://api.github.com/repos/khanh227/rubytest/forks","keys_url":"https://api.github.com/repos/khanh227/rubytest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/khanh227/rubytest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/khanh227/rubytest/teams","hooks_url":"https://api.github.com/repos/khanh227/rubytest/hooks","issue_events_url":"https://api.github.com/repos/khanh227/rubytest/issues/events{/number}","events_url":"https://api.github.com/repos/khanh227/rubytest/events","assignees_url":"https://api.github.com/repos/khanh227/rubytest/assignees{/user}","branches_url":"https://api.github.com/repos/khanh227/rubytest/branches{/branch}","tags_url":"https://api.github.com/repos/khanh227/rubytest/tags","blobs_url":"https://api.github.com/repos/khanh227/rubytest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/khanh227/rubytest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/khanh227/rubytest/git/refs{/sha}","trees_url":"https://api.github.com/repos/khanh227/rubytest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/khanh227/rubytest/statuses/{sha}","languages_url":"https://api.github.com/repos/khanh227/rubytest/languages","stargazers_url":"https://api.github.com/repos/khanh227/rubytest/stargazers","contributors_url":"https://api.github.com/repos/khanh227/rubytest/contributors","subscribers_url":"https://api.github.com/repos/khanh227/rubytest/subscribers","subscription_url":"https://api.github.com/repos/khanh227/rubytest/subscription","commits_url":"https://api.github.com/repos/khanh227/rubytest/commits{/sha}","git_commits_url":"https://api.github.com/repos/khanh227/rubytest/git/commits{/sha}","comments_url":"https://api.github.com/repos/khanh227/rubytest/comments{/number}","issue_comment_url":"https://api.github.com/repos/khanh227/rubytest/issues/comments{/number}","contents_url":"https://api.github.com/repos/khanh227/rubytest/contents/{+path}","compare_url":"https://api.github.com/repos/khanh227/rubytest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/khanh227/rubytest/merges","archive_url":"https://api.github.com/repos/khanh227/rubytest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/khanh227/rubytest/downloads","issues_url":"https://api.github.com/repos/khanh227/rubytest/issues{/number}","pulls_url":"https://api.github.com/repos/khanh227/rubytest/pulls{/number}","milestones_url":"https://api.github.com/repos/khanh227/rubytest/milestones{/number}","notifications_url":"https://api.github.com/repos/khanh227/rubytest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/khanh227/rubytest/labels{/name}","releases_url":"https://api.github.com/repos/khanh227/rubytest/releases{/id}","created_at":"2015-11-10T06:15:48Z","updated_at":"2015-11-10T06:23:51Z","pushed_at":"2015-11-16T06:50:52Z","git_url":"git://github.com/khanh227/rubytest.git","ssh_url":"git@github.com:khanh227/rubytest.git","clone_url":"https://github.com/khanh227/rubytest.git","svn_url":"https://github.com/khanh227/rubytest","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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/khanh227/rubytest/pulls/2"},"html":{"href":"https://github.com/khanh227/rubytest/pull/2"},"issue":{"href":"https://api.github.com/repos/khanh227/rubytest/issues/2"},"comments":{"href":"https://api.github.com/repos/khanh227/rubytest/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/khanh227/rubytest/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/khanh227/rubytest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/khanh227/rubytest/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/khanh227/rubytest/statuses/07f8e87e0acb97f7044e38f95fda99391b28c32b"}}}}