{"action":"created","comment":{"url":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls/comments/217927097","pull_request_review_id":155757450,"id":217927097,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzkyNzA5Nw==","diff_hunk":"@@ -56,32 +56,36 @@ def items_by_merchant_id\n     end\n   end\n \n-  # def average_average_price_per_merchant\n-  #   merchant_ids = items_by_merchant_id.keys\n-  #   average_average_price = merchant_ids.inject(0) do |sum, id|\n-  #     sum += average_item_price_per_merchant(id)\n-  #     binding.pry\n-  #   end / merchant_ids.count\n-  #   average_average_price.round(2)\n-  # end\n+  def average_average_price_per_merchant\n+    merchant_ids = items_by_merchant_id.keys\n+    average_average_price = merchant_ids.inject(0) do |sum, id|\n+      # binding.pry\n+      sum += average_item_price_per_merchant(id.to_i)\n+    end / merchant_ids.count\n+    average_average_price.round(2)\n+  end\n+\n+  def average_items_price\n+    @ir.items.inject(0) do |sum,item|","path":"lib/sales_analyst.rb","position":34,"original_position":34,"commit_id":"46cfaa008e5eb7d168c3ca99b43765ba31854f7a","original_commit_id":"46cfaa008e5eb7d168c3ca99b43765ba31854f7a","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Layout/SpaceAfterComma: Space missing after comma.","created_at":"2018-09-16T20:41:45Z","updated_at":"2018-09-16T20:41:46Z","html_url":"https://github.com/AizarCabrera/black_thursday/pull/25#discussion_r217927097","pull_request_url":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls/25","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls/comments/217927097"},"html":{"href":"https://github.com/AizarCabrera/black_thursday/pull/25#discussion_r217927097"},"pull_request":{"href":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls/25","id":215844018,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1ODQ0MDE4","html_url":"https://github.com/AizarCabrera/black_thursday/pull/25","diff_url":"https://github.com/AizarCabrera/black_thursday/pull/25.diff","patch_url":"https://github.com/AizarCabrera/black_thursday/pull/25.patch","issue_url":"https://api.github.com/repos/AizarCabrera/black_thursday/issues/25","number":25,"state":"open","locked":false,"title":"finishes iteration 1 finallygit add .","user":{"login":"AizarCabrera","id":41408215,"node_id":"MDQ6VXNlcjQxNDA4MjE1","avatar_url":"https://avatars0.githubusercontent.com/u/41408215?v=4","gravatar_id":"","url":"https://api.github.com/users/AizarCabrera","html_url":"https://github.com/AizarCabrera","followers_url":"https://api.github.com/users/AizarCabrera/followers","following_url":"https://api.github.com/users/AizarCabrera/following{/other_user}","gists_url":"https://api.github.com/users/AizarCabrera/gists{/gist_id}","starred_url":"https://api.github.com/users/AizarCabrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AizarCabrera/subscriptions","organizations_url":"https://api.github.com/users/AizarCabrera/orgs","repos_url":"https://api.github.com/users/AizarCabrera/repos","events_url":"https://api.github.com/users/AizarCabrera/events{/privacy}","received_events_url":"https://api.github.com/users/AizarCabrera/received_events","type":"User","site_admin":false},"body":"Finishes iteration 1...sorry it took that long...I've been trying to analyze everything I do, so I can explain it in case of being necessary","created_at":"2018-09-16T20:41:36Z","updated_at":"2018-09-16T20:41:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"680dba7f6f0a1cb9c9f0b4b0849d244ba5941aac","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls/25/commits","review_comments_url":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls/25/comments","review_comment_url":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AizarCabrera/black_thursday/issues/25/comments","statuses_url":"https://api.github.com/repos/AizarCabrera/black_thursday/statuses/46cfaa008e5eb7d168c3ca99b43765ba31854f7a","head":{"label":"AizarCabrera:sales","ref":"sales","sha":"46cfaa008e5eb7d168c3ca99b43765ba31854f7a","user":{"login":"AizarCabrera","id":41408215,"node_id":"MDQ6VXNlcjQxNDA4MjE1","avatar_url":"https://avatars0.githubusercontent.com/u/41408215?v=4","gravatar_id":"","url":"https://api.github.com/users/AizarCabrera","html_url":"https://github.com/AizarCabrera","followers_url":"https://api.github.com/users/AizarCabrera/followers","following_url":"https://api.github.com/users/AizarCabrera/following{/other_user}","gists_url":"https://api.github.com/users/AizarCabrera/gists{/gist_id}","starred_url":"https://api.github.com/users/AizarCabrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AizarCabrera/subscriptions","organizations_url":"https://api.github.com/users/AizarCabrera/orgs","repos_url":"https://api.github.com/users/AizarCabrera/repos","events_url":"https://api.github.com/users/AizarCabrera/events{/privacy}","received_events_url":"https://api.github.com/users/AizarCabrera/received_events","type":"User","site_admin":false},"repo":{"id":147867874,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc4Njc4NzQ=","name":"black_thursday","full_name":"AizarCabrera/black_thursday","private":false,"owner":{"login":"AizarCabrera","id":41408215,"node_id":"MDQ6VXNlcjQxNDA4MjE1","avatar_url":"https://avatars0.githubusercontent.com/u/41408215?v=4","gravatar_id":"","url":"https://api.github.com/users/AizarCabrera","html_url":"https://github.com/AizarCabrera","followers_url":"https://api.github.com/users/AizarCabrera/followers","following_url":"https://api.github.com/users/AizarCabrera/following{/other_user}","gists_url":"https://api.github.com/users/AizarCabrera/gists{/gist_id}","starred_url":"https://api.github.com/users/AizarCabrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AizarCabrera/subscriptions","organizations_url":"https://api.github.com/users/AizarCabrera/orgs","repos_url":"https://api.github.com/users/AizarCabrera/repos","events_url":"https://api.github.com/users/AizarCabrera/events{/privacy}","received_events_url":"https://api.github.com/users/AizarCabrera/received_events","type":"User","site_admin":false},"html_url":"https://github.com/AizarCabrera/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/AizarCabrera/black_thursday","forks_url":"https://api.github.com/repos/AizarCabrera/black_thursday/forks","keys_url":"https://api.github.com/repos/AizarCabrera/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AizarCabrera/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AizarCabrera/black_thursday/teams","hooks_url":"https://api.github.com/repos/AizarCabrera/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/AizarCabrera/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/AizarCabrera/black_thursday/events","assignees_url":"https://api.github.com/repos/AizarCabrera/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/AizarCabrera/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/AizarCabrera/black_thursday/tags","blobs_url":"https://api.github.com/repos/AizarCabrera/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AizarCabrera/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AizarCabrera/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/AizarCabrera/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AizarCabrera/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/AizarCabrera/black_thursday/languages","stargazers_url":"https://api.github.com/repos/AizarCabrera/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/AizarCabrera/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/AizarCabrera/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/AizarCabrera/black_thursday/subscription","commits_url":"https://api.github.com/repos/AizarCabrera/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/AizarCabrera/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/AizarCabrera/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/AizarCabrera/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/AizarCabrera/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/AizarCabrera/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AizarCabrera/black_thursday/merges","archive_url":"https://api.github.com/repos/AizarCabrera/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AizarCabrera/black_thursday/downloads","issues_url":"https://api.github.com/repos/AizarCabrera/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/AizarCabrera/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/AizarCabrera/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AizarCabrera/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/AizarCabrera/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/AizarCabrera/black_thursday/deployments","created_at":"2018-09-07T19:45:39Z","updated_at":"2018-09-16T12:48:26Z","pushed_at":"2018-09-16T20:41:37Z","git_url":"git://github.com/AizarCabrera/black_thursday.git","ssh_url":"git@github.com:AizarCabrera/black_thursday.git","clone_url":"https://github.com/AizarCabrera/black_thursday.git","svn_url":"https://github.com/AizarCabrera/black_thursday","homepage":null,"size":1838,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AizarCabrera:master","ref":"master","sha":"d9ac6707eb8ca83f2676204ba1555ee34ffcb732","user":{"login":"AizarCabrera","id":41408215,"node_id":"MDQ6VXNlcjQxNDA4MjE1","avatar_url":"https://avatars0.githubusercontent.com/u/41408215?v=4","gravatar_id":"","url":"https://api.github.com/users/AizarCabrera","html_url":"https://github.com/AizarCabrera","followers_url":"https://api.github.com/users/AizarCabrera/followers","following_url":"https://api.github.com/users/AizarCabrera/following{/other_user}","gists_url":"https://api.github.com/users/AizarCabrera/gists{/gist_id}","starred_url":"https://api.github.com/users/AizarCabrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AizarCabrera/subscriptions","organizations_url":"https://api.github.com/users/AizarCabrera/orgs","repos_url":"https://api.github.com/users/AizarCabrera/repos","events_url":"https://api.github.com/users/AizarCabrera/events{/privacy}","received_events_url":"https://api.github.com/users/AizarCabrera/received_events","type":"User","site_admin":false},"repo":{"id":147867874,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc4Njc4NzQ=","name":"black_thursday","full_name":"AizarCabrera/black_thursday","private":false,"owner":{"login":"AizarCabrera","id":41408215,"node_id":"MDQ6VXNlcjQxNDA4MjE1","avatar_url":"https://avatars0.githubusercontent.com/u/41408215?v=4","gravatar_id":"","url":"https://api.github.com/users/AizarCabrera","html_url":"https://github.com/AizarCabrera","followers_url":"https://api.github.com/users/AizarCabrera/followers","following_url":"https://api.github.com/users/AizarCabrera/following{/other_user}","gists_url":"https://api.github.com/users/AizarCabrera/gists{/gist_id}","starred_url":"https://api.github.com/users/AizarCabrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AizarCabrera/subscriptions","organizations_url":"https://api.github.com/users/AizarCabrera/orgs","repos_url":"https://api.github.com/users/AizarCabrera/repos","events_url":"https://api.github.com/users/AizarCabrera/events{/privacy}","received_events_url":"https://api.github.com/users/AizarCabrera/received_events","type":"User","site_admin":false},"html_url":"https://github.com/AizarCabrera/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/AizarCabrera/black_thursday","forks_url":"https://api.github.com/repos/AizarCabrera/black_thursday/forks","keys_url":"https://api.github.com/repos/AizarCabrera/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AizarCabrera/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AizarCabrera/black_thursday/teams","hooks_url":"https://api.github.com/repos/AizarCabrera/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/AizarCabrera/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/AizarCabrera/black_thursday/events","assignees_url":"https://api.github.com/repos/AizarCabrera/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/AizarCabrera/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/AizarCabrera/black_thursday/tags","blobs_url":"https://api.github.com/repos/AizarCabrera/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AizarCabrera/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AizarCabrera/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/AizarCabrera/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AizarCabrera/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/AizarCabrera/black_thursday/languages","stargazers_url":"https://api.github.com/repos/AizarCabrera/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/AizarCabrera/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/AizarCabrera/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/AizarCabrera/black_thursday/subscription","commits_url":"https://api.github.com/repos/AizarCabrera/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/AizarCabrera/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/AizarCabrera/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/AizarCabrera/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/AizarCabrera/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/AizarCabrera/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AizarCabrera/black_thursday/merges","archive_url":"https://api.github.com/repos/AizarCabrera/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AizarCabrera/black_thursday/downloads","issues_url":"https://api.github.com/repos/AizarCabrera/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/AizarCabrera/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/AizarCabrera/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AizarCabrera/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/AizarCabrera/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/AizarCabrera/black_thursday/deployments","created_at":"2018-09-07T19:45:39Z","updated_at":"2018-09-16T12:48:26Z","pushed_at":"2018-09-16T20:41:37Z","git_url":"git://github.com/AizarCabrera/black_thursday.git","ssh_url":"git@github.com:AizarCabrera/black_thursday.git","clone_url":"https://github.com/AizarCabrera/black_thursday.git","svn_url":"https://github.com/AizarCabrera/black_thursday","homepage":null,"size":1838,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls/25"},"html":{"href":"https://github.com/AizarCabrera/black_thursday/pull/25"},"issue":{"href":"https://api.github.com/repos/AizarCabrera/black_thursday/issues/25"},"comments":{"href":"https://api.github.com/repos/AizarCabrera/black_thursday/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AizarCabrera/black_thursday/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/AizarCabrera/black_thursday/statuses/46cfaa008e5eb7d168c3ca99b43765ba31854f7a"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}