{"action":"created","comment":{"url":"https://api.github.com/repos/marlabrizel/sales_engine/pulls/comments/33100934","id":33100934,"diff_hunk":"@@ -112,4 +112,29 @@ def find_item(item_id)\n     sales_engine.find_item_by_item_id(item_id)\n   end\n \n+  def create_invoice_items(items, new_invoice_id)\n+    items.map do |item|\n+      new_invoice_item = InvoiceItem.new({id: next_id,\n+                       item_id: item.id,\n+                       invoice_id: new_invoice_id,","path":"lib/invoice_item_repository.rb","position":8,"original_position":8,"commit_id":"4c48178b4fff02ceae4329dde11ec04bba7b0f70","original_commit_id":"4c48178b4fff02ceae4329dde11ec04bba7b0f70","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Align the elements of a hash literal if they span more than one line.","created_at":"2015-06-23T22:37:07Z","updated_at":"2015-06-23T22:37:07Z","html_url":"https://github.com/marlabrizel/sales_engine/pull/56#discussion_r33100934","pull_request_url":"https://api.github.com/repos/marlabrizel/sales_engine/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/marlabrizel/sales_engine/pulls/comments/33100934"},"html":{"href":"https://github.com/marlabrizel/sales_engine/pull/56#discussion_r33100934"},"pull_request":{"href":"https://api.github.com/repos/marlabrizel/sales_engine/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/marlabrizel/sales_engine/pulls/56","id":38390755,"html_url":"https://github.com/marlabrizel/sales_engine/pull/56","diff_url":"https://github.com/marlabrizel/sales_engine/pull/56.diff","patch_url":"https://github.com/marlabrizel/sales_engine/pull/56.patch","issue_url":"https://api.github.com/repos/marlabrizel/sales_engine/issues/56","number":56,"state":"open","locked":false,"title":"Add functionality to create new invoices on the fly.","user":{"login":"sabondano","id":1958868,"avatar_url":"https://avatars.githubusercontent.com/u/1958868?v=3","gravatar_id":"","url":"https://api.github.com/users/sabondano","html_url":"https://github.com/sabondano","followers_url":"https://api.github.com/users/sabondano/followers","following_url":"https://api.github.com/users/sabondano/following{/other_user}","gists_url":"https://api.github.com/users/sabondano/gists{/gist_id}","starred_url":"https://api.github.com/users/sabondano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabondano/subscriptions","organizations_url":"https://api.github.com/users/sabondano/orgs","repos_url":"https://api.github.com/users/sabondano/repos","events_url":"https://api.github.com/users/sabondano/events{/privacy}","received_events_url":"https://api.github.com/users/sabondano/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-23T22:37:01Z","updated_at":"2015-06-23T22:37:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0705440ffcad103adf5fed156e3a4679ba0a1aa3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/marlabrizel/sales_engine/pulls/56/commits","review_comments_url":"https://api.github.com/repos/marlabrizel/sales_engine/pulls/56/comments","review_comment_url":"https://api.github.com/repos/marlabrizel/sales_engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marlabrizel/sales_engine/issues/56/comments","statuses_url":"https://api.github.com/repos/marlabrizel/sales_engine/statuses/4c48178b4fff02ceae4329dde11ec04bba7b0f70","head":{"label":"marlabrizel:create-invoices","ref":"create-invoices","sha":"4c48178b4fff02ceae4329dde11ec04bba7b0f70","user":{"login":"marlabrizel","id":6632025,"avatar_url":"https://avatars.githubusercontent.com/u/6632025?v=3","gravatar_id":"","url":"https://api.github.com/users/marlabrizel","html_url":"https://github.com/marlabrizel","followers_url":"https://api.github.com/users/marlabrizel/followers","following_url":"https://api.github.com/users/marlabrizel/following{/other_user}","gists_url":"https://api.github.com/users/marlabrizel/gists{/gist_id}","starred_url":"https://api.github.com/users/marlabrizel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marlabrizel/subscriptions","organizations_url":"https://api.github.com/users/marlabrizel/orgs","repos_url":"https://api.github.com/users/marlabrizel/repos","events_url":"https://api.github.com/users/marlabrizel/events{/privacy}","received_events_url":"https://api.github.com/users/marlabrizel/received_events","type":"User","site_admin":false},"repo":{"id":37489691,"name":"sales_engine","full_name":"marlabrizel/sales_engine","owner":{"login":"marlabrizel","id":6632025,"avatar_url":"https://avatars.githubusercontent.com/u/6632025?v=3","gravatar_id":"","url":"https://api.github.com/users/marlabrizel","html_url":"https://github.com/marlabrizel","followers_url":"https://api.github.com/users/marlabrizel/followers","following_url":"https://api.github.com/users/marlabrizel/following{/other_user}","gists_url":"https://api.github.com/users/marlabrizel/gists{/gist_id}","starred_url":"https://api.github.com/users/marlabrizel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marlabrizel/subscriptions","organizations_url":"https://api.github.com/users/marlabrizel/orgs","repos_url":"https://api.github.com/users/marlabrizel/repos","events_url":"https://api.github.com/users/marlabrizel/events{/privacy}","received_events_url":"https://api.github.com/users/marlabrizel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marlabrizel/sales_engine","description":"","fork":false,"url":"https://api.github.com/repos/marlabrizel/sales_engine","forks_url":"https://api.github.com/repos/marlabrizel/sales_engine/forks","keys_url":"https://api.github.com/repos/marlabrizel/sales_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marlabrizel/sales_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marlabrizel/sales_engine/teams","hooks_url":"https://api.github.com/repos/marlabrizel/sales_engine/hooks","issue_events_url":"https://api.github.com/repos/marlabrizel/sales_engine/issues/events{/number}","events_url":"https://api.github.com/repos/marlabrizel/sales_engine/events","assignees_url":"https://api.github.com/repos/marlabrizel/sales_engine/assignees{/user}","branches_url":"https://api.github.com/repos/marlabrizel/sales_engine/branches{/branch}","tags_url":"https://api.github.com/repos/marlabrizel/sales_engine/tags","blobs_url":"https://api.github.com/repos/marlabrizel/sales_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marlabrizel/sales_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marlabrizel/sales_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/marlabrizel/sales_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marlabrizel/sales_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/marlabrizel/sales_engine/languages","stargazers_url":"https://api.github.com/repos/marlabrizel/sales_engine/stargazers","contributors_url":"https://api.github.com/repos/marlabrizel/sales_engine/contributors","subscribers_url":"https://api.github.com/repos/marlabrizel/sales_engine/subscribers","subscription_url":"https://api.github.com/repos/marlabrizel/sales_engine/subscription","commits_url":"https://api.github.com/repos/marlabrizel/sales_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/marlabrizel/sales_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/marlabrizel/sales_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/marlabrizel/sales_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/marlabrizel/sales_engine/contents/{+path}","compare_url":"https://api.github.com/repos/marlabrizel/sales_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marlabrizel/sales_engine/merges","archive_url":"https://api.github.com/repos/marlabrizel/sales_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marlabrizel/sales_engine/downloads","issues_url":"https://api.github.com/repos/marlabrizel/sales_engine/issues{/number}","pulls_url":"https://api.github.com/repos/marlabrizel/sales_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/marlabrizel/sales_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/marlabrizel/sales_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marlabrizel/sales_engine/labels{/name}","releases_url":"https://api.github.com/repos/marlabrizel/sales_engine/releases{/id}","created_at":"2015-06-15T20:31:30Z","updated_at":"2015-06-23T00:40:05Z","pushed_at":"2015-06-23T22:37:01Z","git_url":"git://github.com/marlabrizel/sales_engine.git","ssh_url":"git@github.com:marlabrizel/sales_engine.git","clone_url":"https://github.com/marlabrizel/sales_engine.git","svn_url":"https://github.com/marlabrizel/sales_engine","homepage":null,"size":1487,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"marlabrizel:master","ref":"master","sha":"2fb414f891e96ce41a759b669b1e5610b131ceed","user":{"login":"marlabrizel","id":6632025,"avatar_url":"https://avatars.githubusercontent.com/u/6632025?v=3","gravatar_id":"","url":"https://api.github.com/users/marlabrizel","html_url":"https://github.com/marlabrizel","followers_url":"https://api.github.com/users/marlabrizel/followers","following_url":"https://api.github.com/users/marlabrizel/following{/other_user}","gists_url":"https://api.github.com/users/marlabrizel/gists{/gist_id}","starred_url":"https://api.github.com/users/marlabrizel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marlabrizel/subscriptions","organizations_url":"https://api.github.com/users/marlabrizel/orgs","repos_url":"https://api.github.com/users/marlabrizel/repos","events_url":"https://api.github.com/users/marlabrizel/events{/privacy}","received_events_url":"https://api.github.com/users/marlabrizel/received_events","type":"User","site_admin":false},"repo":{"id":37489691,"name":"sales_engine","full_name":"marlabrizel/sales_engine","owner":{"login":"marlabrizel","id":6632025,"avatar_url":"https://avatars.githubusercontent.com/u/6632025?v=3","gravatar_id":"","url":"https://api.github.com/users/marlabrizel","html_url":"https://github.com/marlabrizel","followers_url":"https://api.github.com/users/marlabrizel/followers","following_url":"https://api.github.com/users/marlabrizel/following{/other_user}","gists_url":"https://api.github.com/users/marlabrizel/gists{/gist_id}","starred_url":"https://api.github.com/users/marlabrizel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marlabrizel/subscriptions","organizations_url":"https://api.github.com/users/marlabrizel/orgs","repos_url":"https://api.github.com/users/marlabrizel/repos","events_url":"https://api.github.com/users/marlabrizel/events{/privacy}","received_events_url":"https://api.github.com/users/marlabrizel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marlabrizel/sales_engine","description":"","fork":false,"url":"https://api.github.com/repos/marlabrizel/sales_engine","forks_url":"https://api.github.com/repos/marlabrizel/sales_engine/forks","keys_url":"https://api.github.com/repos/marlabrizel/sales_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marlabrizel/sales_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marlabrizel/sales_engine/teams","hooks_url":"https://api.github.com/repos/marlabrizel/sales_engine/hooks","issue_events_url":"https://api.github.com/repos/marlabrizel/sales_engine/issues/events{/number}","events_url":"https://api.github.com/repos/marlabrizel/sales_engine/events","assignees_url":"https://api.github.com/repos/marlabrizel/sales_engine/assignees{/user}","branches_url":"https://api.github.com/repos/marlabrizel/sales_engine/branches{/branch}","tags_url":"https://api.github.com/repos/marlabrizel/sales_engine/tags","blobs_url":"https://api.github.com/repos/marlabrizel/sales_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marlabrizel/sales_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marlabrizel/sales_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/marlabrizel/sales_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marlabrizel/sales_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/marlabrizel/sales_engine/languages","stargazers_url":"https://api.github.com/repos/marlabrizel/sales_engine/stargazers","contributors_url":"https://api.github.com/repos/marlabrizel/sales_engine/contributors","subscribers_url":"https://api.github.com/repos/marlabrizel/sales_engine/subscribers","subscription_url":"https://api.github.com/repos/marlabrizel/sales_engine/subscription","commits_url":"https://api.github.com/repos/marlabrizel/sales_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/marlabrizel/sales_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/marlabrizel/sales_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/marlabrizel/sales_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/marlabrizel/sales_engine/contents/{+path}","compare_url":"https://api.github.com/repos/marlabrizel/sales_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marlabrizel/sales_engine/merges","archive_url":"https://api.github.com/repos/marlabrizel/sales_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marlabrizel/sales_engine/downloads","issues_url":"https://api.github.com/repos/marlabrizel/sales_engine/issues{/number}","pulls_url":"https://api.github.com/repos/marlabrizel/sales_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/marlabrizel/sales_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/marlabrizel/sales_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marlabrizel/sales_engine/labels{/name}","releases_url":"https://api.github.com/repos/marlabrizel/sales_engine/releases{/id}","created_at":"2015-06-15T20:31:30Z","updated_at":"2015-06-23T00:40:05Z","pushed_at":"2015-06-23T22:37:01Z","git_url":"git://github.com/marlabrizel/sales_engine.git","ssh_url":"git@github.com:marlabrizel/sales_engine.git","clone_url":"https://github.com/marlabrizel/sales_engine.git","svn_url":"https://github.com/marlabrizel/sales_engine","homepage":null,"size":1487,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marlabrizel/sales_engine/pulls/56"},"html":{"href":"https://github.com/marlabrizel/sales_engine/pull/56"},"issue":{"href":"https://api.github.com/repos/marlabrizel/sales_engine/issues/56"},"comments":{"href":"https://api.github.com/repos/marlabrizel/sales_engine/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/marlabrizel/sales_engine/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/marlabrizel/sales_engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marlabrizel/sales_engine/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/marlabrizel/sales_engine/statuses/4c48178b4fff02ceae4329dde11ec04bba7b0f70"}}}}