{"action":"created","comment":{"url":"https://api.github.com/repos/sdhar86/ga/pulls/comments/40053634","id":40053634,"diff_hunk":"@@ -0,0 +1,28 @@\n+class ResourceGrowth\n+\n+  def initialize(empire)\n+    @empire = empire\n+    @city = @empire.city\n+    @population = @empire.population\n+    @resource = @empire.resource\n+  end\n+\n+  def call\n+    @resource[\"unbanked_wood\"] = @resource[\"unbanked_wood\"] + resource_increase_for_the_empire[\"wood\"]\n+    @resource[\"unbanked_food\"] = @resource[\"unbanked_food\"] + resource_increase_for_the_empire[\"food\"]\n+    @resource[\"unbanked_stone\"] = @resource[\"unbanked_stone\"] + resource_increase_for_the_empire[\"stone\"]\n+    @resource[\"unbanked_ore\"] = @resource[\"unbanked_ore\"] + resource_increase_for_the_empire[\"ore\"]","path":"app/services/resource_growth.rb","position":14,"original_position":14,"commit_id":"42bfaa10b22b444127c14bc3d70ea0b93b125e68","original_commit_id":"42bfaa10b22b444127c14bc3d70ea0b93b125e68","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":"Line is too long. [99/80]","created_at":"2015-09-22T05:16:52Z","updated_at":"2015-09-22T05:16:52Z","html_url":"https://github.com/sdhar86/ga/pull/4#discussion_r40053634","pull_request_url":"https://api.github.com/repos/sdhar86/ga/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/sdhar86/ga/pulls/comments/40053634"},"html":{"href":"https://github.com/sdhar86/ga/pull/4#discussion_r40053634"},"pull_request":{"href":"https://api.github.com/repos/sdhar86/ga/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/sdhar86/ga/pulls/4","id":45627545,"html_url":"https://github.com/sdhar86/ga/pull/4","diff_url":"https://github.com/sdhar86/ga/pull/4.diff","patch_url":"https://github.com/sdhar86/ga/pull/4.patch","issue_url":"https://api.github.com/repos/sdhar86/ga/issues/4","number":4,"state":"open","locked":false,"title":"added service objects for resource and population growth","user":{"login":"sdhar86","id":173228,"avatar_url":"https://avatars.githubusercontent.com/u/173228?v=3","gravatar_id":"","url":"https://api.github.com/users/sdhar86","html_url":"https://github.com/sdhar86","followers_url":"https://api.github.com/users/sdhar86/followers","following_url":"https://api.github.com/users/sdhar86/following{/other_user}","gists_url":"https://api.github.com/users/sdhar86/gists{/gist_id}","starred_url":"https://api.github.com/users/sdhar86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdhar86/subscriptions","organizations_url":"https://api.github.com/users/sdhar86/orgs","repos_url":"https://api.github.com/users/sdhar86/repos","events_url":"https://api.github.com/users/sdhar86/events{/privacy}","received_events_url":"https://api.github.com/users/sdhar86/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-22T05:16:46Z","updated_at":"2015-09-22T05:16:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f554d48030dc9c0f3970171d01dc5d4e7273000d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sdhar86/ga/pulls/4/commits","review_comments_url":"https://api.github.com/repos/sdhar86/ga/pulls/4/comments","review_comment_url":"https://api.github.com/repos/sdhar86/ga/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sdhar86/ga/issues/4/comments","statuses_url":"https://api.github.com/repos/sdhar86/ga/statuses/42bfaa10b22b444127c14bc3d70ea0b93b125e68","head":{"label":"sdhar86:growth_mechanism","ref":"growth_mechanism","sha":"42bfaa10b22b444127c14bc3d70ea0b93b125e68","user":{"login":"sdhar86","id":173228,"avatar_url":"https://avatars.githubusercontent.com/u/173228?v=3","gravatar_id":"","url":"https://api.github.com/users/sdhar86","html_url":"https://github.com/sdhar86","followers_url":"https://api.github.com/users/sdhar86/followers","following_url":"https://api.github.com/users/sdhar86/following{/other_user}","gists_url":"https://api.github.com/users/sdhar86/gists{/gist_id}","starred_url":"https://api.github.com/users/sdhar86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdhar86/subscriptions","organizations_url":"https://api.github.com/users/sdhar86/orgs","repos_url":"https://api.github.com/users/sdhar86/repos","events_url":"https://api.github.com/users/sdhar86/events{/privacy}","received_events_url":"https://api.github.com/users/sdhar86/received_events","type":"User","site_admin":false},"repo":{"id":42389178,"name":"ga","full_name":"sdhar86/ga","owner":{"login":"sdhar86","id":173228,"avatar_url":"https://avatars.githubusercontent.com/u/173228?v=3","gravatar_id":"","url":"https://api.github.com/users/sdhar86","html_url":"https://github.com/sdhar86","followers_url":"https://api.github.com/users/sdhar86/followers","following_url":"https://api.github.com/users/sdhar86/following{/other_user}","gists_url":"https://api.github.com/users/sdhar86/gists{/gist_id}","starred_url":"https://api.github.com/users/sdhar86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdhar86/subscriptions","organizations_url":"https://api.github.com/users/sdhar86/orgs","repos_url":"https://api.github.com/users/sdhar86/repos","events_url":"https://api.github.com/users/sdhar86/events{/privacy}","received_events_url":"https://api.github.com/users/sdhar86/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sdhar86/ga","description":"the game","fork":false,"url":"https://api.github.com/repos/sdhar86/ga","forks_url":"https://api.github.com/repos/sdhar86/ga/forks","keys_url":"https://api.github.com/repos/sdhar86/ga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdhar86/ga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdhar86/ga/teams","hooks_url":"https://api.github.com/repos/sdhar86/ga/hooks","issue_events_url":"https://api.github.com/repos/sdhar86/ga/issues/events{/number}","events_url":"https://api.github.com/repos/sdhar86/ga/events","assignees_url":"https://api.github.com/repos/sdhar86/ga/assignees{/user}","branches_url":"https://api.github.com/repos/sdhar86/ga/branches{/branch}","tags_url":"https://api.github.com/repos/sdhar86/ga/tags","blobs_url":"https://api.github.com/repos/sdhar86/ga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdhar86/ga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdhar86/ga/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdhar86/ga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdhar86/ga/statuses/{sha}","languages_url":"https://api.github.com/repos/sdhar86/ga/languages","stargazers_url":"https://api.github.com/repos/sdhar86/ga/stargazers","contributors_url":"https://api.github.com/repos/sdhar86/ga/contributors","subscribers_url":"https://api.github.com/repos/sdhar86/ga/subscribers","subscription_url":"https://api.github.com/repos/sdhar86/ga/subscription","commits_url":"https://api.github.com/repos/sdhar86/ga/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdhar86/ga/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdhar86/ga/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdhar86/ga/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdhar86/ga/contents/{+path}","compare_url":"https://api.github.com/repos/sdhar86/ga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdhar86/ga/merges","archive_url":"https://api.github.com/repos/sdhar86/ga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdhar86/ga/downloads","issues_url":"https://api.github.com/repos/sdhar86/ga/issues{/number}","pulls_url":"https://api.github.com/repos/sdhar86/ga/pulls{/number}","milestones_url":"https://api.github.com/repos/sdhar86/ga/milestones{/number}","notifications_url":"https://api.github.com/repos/sdhar86/ga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdhar86/ga/labels{/name}","releases_url":"https://api.github.com/repos/sdhar86/ga/releases{/id}","created_at":"2015-09-13T08:41:10Z","updated_at":"2015-09-13T08:41:42Z","pushed_at":"2015-09-22T05:16:47Z","git_url":"git://github.com/sdhar86/ga.git","ssh_url":"git@github.com:sdhar86/ga.git","clone_url":"https://github.com/sdhar86/ga.git","svn_url":"https://github.com/sdhar86/ga","homepage":null,"size":232,"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":"sdhar86:master","ref":"master","sha":"6f37bc9de6fed6ee402ae0d75209bae6832a68bd","user":{"login":"sdhar86","id":173228,"avatar_url":"https://avatars.githubusercontent.com/u/173228?v=3","gravatar_id":"","url":"https://api.github.com/users/sdhar86","html_url":"https://github.com/sdhar86","followers_url":"https://api.github.com/users/sdhar86/followers","following_url":"https://api.github.com/users/sdhar86/following{/other_user}","gists_url":"https://api.github.com/users/sdhar86/gists{/gist_id}","starred_url":"https://api.github.com/users/sdhar86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdhar86/subscriptions","organizations_url":"https://api.github.com/users/sdhar86/orgs","repos_url":"https://api.github.com/users/sdhar86/repos","events_url":"https://api.github.com/users/sdhar86/events{/privacy}","received_events_url":"https://api.github.com/users/sdhar86/received_events","type":"User","site_admin":false},"repo":{"id":42389178,"name":"ga","full_name":"sdhar86/ga","owner":{"login":"sdhar86","id":173228,"avatar_url":"https://avatars.githubusercontent.com/u/173228?v=3","gravatar_id":"","url":"https://api.github.com/users/sdhar86","html_url":"https://github.com/sdhar86","followers_url":"https://api.github.com/users/sdhar86/followers","following_url":"https://api.github.com/users/sdhar86/following{/other_user}","gists_url":"https://api.github.com/users/sdhar86/gists{/gist_id}","starred_url":"https://api.github.com/users/sdhar86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdhar86/subscriptions","organizations_url":"https://api.github.com/users/sdhar86/orgs","repos_url":"https://api.github.com/users/sdhar86/repos","events_url":"https://api.github.com/users/sdhar86/events{/privacy}","received_events_url":"https://api.github.com/users/sdhar86/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sdhar86/ga","description":"the game","fork":false,"url":"https://api.github.com/repos/sdhar86/ga","forks_url":"https://api.github.com/repos/sdhar86/ga/forks","keys_url":"https://api.github.com/repos/sdhar86/ga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdhar86/ga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdhar86/ga/teams","hooks_url":"https://api.github.com/repos/sdhar86/ga/hooks","issue_events_url":"https://api.github.com/repos/sdhar86/ga/issues/events{/number}","events_url":"https://api.github.com/repos/sdhar86/ga/events","assignees_url":"https://api.github.com/repos/sdhar86/ga/assignees{/user}","branches_url":"https://api.github.com/repos/sdhar86/ga/branches{/branch}","tags_url":"https://api.github.com/repos/sdhar86/ga/tags","blobs_url":"https://api.github.com/repos/sdhar86/ga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdhar86/ga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdhar86/ga/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdhar86/ga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdhar86/ga/statuses/{sha}","languages_url":"https://api.github.com/repos/sdhar86/ga/languages","stargazers_url":"https://api.github.com/repos/sdhar86/ga/stargazers","contributors_url":"https://api.github.com/repos/sdhar86/ga/contributors","subscribers_url":"https://api.github.com/repos/sdhar86/ga/subscribers","subscription_url":"https://api.github.com/repos/sdhar86/ga/subscription","commits_url":"https://api.github.com/repos/sdhar86/ga/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdhar86/ga/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdhar86/ga/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdhar86/ga/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdhar86/ga/contents/{+path}","compare_url":"https://api.github.com/repos/sdhar86/ga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdhar86/ga/merges","archive_url":"https://api.github.com/repos/sdhar86/ga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdhar86/ga/downloads","issues_url":"https://api.github.com/repos/sdhar86/ga/issues{/number}","pulls_url":"https://api.github.com/repos/sdhar86/ga/pulls{/number}","milestones_url":"https://api.github.com/repos/sdhar86/ga/milestones{/number}","notifications_url":"https://api.github.com/repos/sdhar86/ga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdhar86/ga/labels{/name}","releases_url":"https://api.github.com/repos/sdhar86/ga/releases{/id}","created_at":"2015-09-13T08:41:10Z","updated_at":"2015-09-13T08:41:42Z","pushed_at":"2015-09-22T05:16:47Z","git_url":"git://github.com/sdhar86/ga.git","ssh_url":"git@github.com:sdhar86/ga.git","clone_url":"https://github.com/sdhar86/ga.git","svn_url":"https://github.com/sdhar86/ga","homepage":null,"size":232,"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/sdhar86/ga/pulls/4"},"html":{"href":"https://github.com/sdhar86/ga/pull/4"},"issue":{"href":"https://api.github.com/repos/sdhar86/ga/issues/4"},"comments":{"href":"https://api.github.com/repos/sdhar86/ga/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/sdhar86/ga/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/sdhar86/ga/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sdhar86/ga/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/sdhar86/ga/statuses/42bfaa10b22b444127c14bc3d70ea0b93b125e68"}}}}