{"action":"created","comment":{"url":"https://api.github.com/repos/playfig/fund_america/pulls/comments/69603527","id":69603527,"diff_hunk":"@@ -6,32 +6,31 @@ class << self\n       # Usage: FundAmerica::Investor.list\n       # Output: Returns list of investors\n       def list\n-        API::request(:get, FundAmerica.base_uri + 'investors')\n+        API::request(:get, 'investors')\n       end\n \n       # End point: https://apps.fundamerica.com/api/investors (POST)\n       # Usage: FundAmerica::Investor.create(options)\n       # Output: Creates a new investor - proxy, joint, ira\n       def create(options)\n-        API::request(:post, FundAmerica.base_uri + 'investors', options)\n+        API::request(:post, 'investors', options)\n       end\n \n       # End point: https://apps.fundamerica.com/api/investors/:id (PATCH)\n       # Usage: FundAmerica::Investor.update(entity_id, options)\n       # Output: Updates an investor - proxy, joint, irc\n       # Uses test_mode update when used in sandbox mode\n       def update(investor_id, options)\n-        end_point_url = FundAmerica.base_uri + \"#{FundAmerica.mode == 'sandbox' ? 'test_mode/' : ''}\" + \"investors/#{investor_id}\"\n-        API::request(:patch, end_point_url, options)\n+        end_point_path = \"#{FundAmerica.mode == 'sandbox' ? 'test_mode/' : ''}\" + \"investors/#{investor_id}\"","path":"lib/fund_america/investor.rb","position":23,"original_position":23,"commit_id":"f4162695a9fbda5c7ca4c8d0c9a12d26cca44e43","original_commit_id":"f4162695a9fbda5c7ca4c8d0c9a12d26cca44e43","user":{"login":"etrepum","id":26596,"avatar_url":"https://avatars.githubusercontent.com/u/26596?v=3","gravatar_id":"","url":"https://api.github.com/users/etrepum","html_url":"https://github.com/etrepum","followers_url":"https://api.github.com/users/etrepum/followers","following_url":"https://api.github.com/users/etrepum/following{/other_user}","gists_url":"https://api.github.com/users/etrepum/gists{/gist_id}","starred_url":"https://api.github.com/users/etrepum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etrepum/subscriptions","organizations_url":"https://api.github.com/users/etrepum/orgs","repos_url":"https://api.github.com/users/etrepum/repos","events_url":"https://api.github.com/users/etrepum/events{/privacy}","received_events_url":"https://api.github.com/users/etrepum/received_events","type":"User","site_admin":false},"body":"This is wrong because test_mode URLs do not get prefixed","created_at":"2016-07-05T17:25:37Z","updated_at":"2016-07-05T17:25:37Z","html_url":"https://github.com/playfig/fund_america/pull/4#discussion_r69603527","pull_request_url":"https://api.github.com/repos/playfig/fund_america/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/playfig/fund_america/pulls/comments/69603527"},"html":{"href":"https://github.com/playfig/fund_america/pull/4#discussion_r69603527"},"pull_request":{"href":"https://api.github.com/repos/playfig/fund_america/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/playfig/fund_america/pulls/4","id":76310327,"html_url":"https://github.com/playfig/fund_america/pull/4","diff_url":"https://github.com/playfig/fund_america/pull/4.diff","patch_url":"https://github.com/playfig/fund_america/pull/4.patch","issue_url":"https://api.github.com/repos/playfig/fund_america/issues/4","number":4,"state":"open","locked":false,"title":"Merge changes from upstream","user":{"login":"johanoskarsson","id":26380,"avatar_url":"https://avatars.githubusercontent.com/u/26380?v=3","gravatar_id":"","url":"https://api.github.com/users/johanoskarsson","html_url":"https://github.com/johanoskarsson","followers_url":"https://api.github.com/users/johanoskarsson/followers","following_url":"https://api.github.com/users/johanoskarsson/following{/other_user}","gists_url":"https://api.github.com/users/johanoskarsson/gists{/gist_id}","starred_url":"https://api.github.com/users/johanoskarsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanoskarsson/subscriptions","organizations_url":"https://api.github.com/users/johanoskarsson/orgs","repos_url":"https://api.github.com/users/johanoskarsson/repos","events_url":"https://api.github.com/users/johanoskarsson/events{/privacy}","received_events_url":"https://api.github.com/users/johanoskarsson/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-05T17:17:13Z","updated_at":"2016-07-05T17:25:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c3cadd0db6a13d9f4ea1ba8de91e92d5def77dd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/playfig/fund_america/pulls/4/commits","review_comments_url":"https://api.github.com/repos/playfig/fund_america/pulls/4/comments","review_comment_url":"https://api.github.com/repos/playfig/fund_america/pulls/comments{/number}","comments_url":"https://api.github.com/repos/playfig/fund_america/issues/4/comments","statuses_url":"https://api.github.com/repos/playfig/fund_america/statuses/f4162695a9fbda5c7ca4c8d0c9a12d26cca44e43","head":{"label":"playfig:mergeupstream","ref":"mergeupstream","sha":"f4162695a9fbda5c7ca4c8d0c9a12d26cca44e43","user":{"login":"playfig","id":11932410,"avatar_url":"https://avatars.githubusercontent.com/u/11932410?v=3","gravatar_id":"","url":"https://api.github.com/users/playfig","html_url":"https://github.com/playfig","followers_url":"https://api.github.com/users/playfig/followers","following_url":"https://api.github.com/users/playfig/following{/other_user}","gists_url":"https://api.github.com/users/playfig/gists{/gist_id}","starred_url":"https://api.github.com/users/playfig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playfig/subscriptions","organizations_url":"https://api.github.com/users/playfig/orgs","repos_url":"https://api.github.com/users/playfig/repos","events_url":"https://api.github.com/users/playfig/events{/privacy}","received_events_url":"https://api.github.com/users/playfig/received_events","type":"Organization","site_admin":false},"repo":{"id":53089529,"name":"fund_america","full_name":"playfig/fund_america","owner":{"login":"playfig","id":11932410,"avatar_url":"https://avatars.githubusercontent.com/u/11932410?v=3","gravatar_id":"","url":"https://api.github.com/users/playfig","html_url":"https://github.com/playfig","followers_url":"https://api.github.com/users/playfig/followers","following_url":"https://api.github.com/users/playfig/following{/other_user}","gists_url":"https://api.github.com/users/playfig/gists{/gist_id}","starred_url":"https://api.github.com/users/playfig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playfig/subscriptions","organizations_url":"https://api.github.com/users/playfig/orgs","repos_url":"https://api.github.com/users/playfig/repos","events_url":"https://api.github.com/users/playfig/events{/privacy}","received_events_url":"https://api.github.com/users/playfig/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/playfig/fund_america","description":"This is a ruby gem to use the FundAmerica (http://www.fundamerica.com) API easily in your ruby, rails and sinatra apps built by RubyEffect (http://www.rubyeffect.com)","fork":true,"url":"https://api.github.com/repos/playfig/fund_america","forks_url":"https://api.github.com/repos/playfig/fund_america/forks","keys_url":"https://api.github.com/repos/playfig/fund_america/keys{/key_id}","collaborators_url":"https://api.github.com/repos/playfig/fund_america/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/playfig/fund_america/teams","hooks_url":"https://api.github.com/repos/playfig/fund_america/hooks","issue_events_url":"https://api.github.com/repos/playfig/fund_america/issues/events{/number}","events_url":"https://api.github.com/repos/playfig/fund_america/events","assignees_url":"https://api.github.com/repos/playfig/fund_america/assignees{/user}","branches_url":"https://api.github.com/repos/playfig/fund_america/branches{/branch}","tags_url":"https://api.github.com/repos/playfig/fund_america/tags","blobs_url":"https://api.github.com/repos/playfig/fund_america/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/playfig/fund_america/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/playfig/fund_america/git/refs{/sha}","trees_url":"https://api.github.com/repos/playfig/fund_america/git/trees{/sha}","statuses_url":"https://api.github.com/repos/playfig/fund_america/statuses/{sha}","languages_url":"https://api.github.com/repos/playfig/fund_america/languages","stargazers_url":"https://api.github.com/repos/playfig/fund_america/stargazers","contributors_url":"https://api.github.com/repos/playfig/fund_america/contributors","subscribers_url":"https://api.github.com/repos/playfig/fund_america/subscribers","subscription_url":"https://api.github.com/repos/playfig/fund_america/subscription","commits_url":"https://api.github.com/repos/playfig/fund_america/commits{/sha}","git_commits_url":"https://api.github.com/repos/playfig/fund_america/git/commits{/sha}","comments_url":"https://api.github.com/repos/playfig/fund_america/comments{/number}","issue_comment_url":"https://api.github.com/repos/playfig/fund_america/issues/comments{/number}","contents_url":"https://api.github.com/repos/playfig/fund_america/contents/{+path}","compare_url":"https://api.github.com/repos/playfig/fund_america/compare/{base}...{head}","merges_url":"https://api.github.com/repos/playfig/fund_america/merges","archive_url":"https://api.github.com/repos/playfig/fund_america/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/playfig/fund_america/downloads","issues_url":"https://api.github.com/repos/playfig/fund_america/issues{/number}","pulls_url":"https://api.github.com/repos/playfig/fund_america/pulls{/number}","milestones_url":"https://api.github.com/repos/playfig/fund_america/milestones{/number}","notifications_url":"https://api.github.com/repos/playfig/fund_america/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/playfig/fund_america/labels{/name}","releases_url":"https://api.github.com/repos/playfig/fund_america/releases{/id}","deployments_url":"https://api.github.com/repos/playfig/fund_america/deployments","created_at":"2016-03-03T22:39:37Z","updated_at":"2016-03-22T18:38:21Z","pushed_at":"2016-07-05T17:17:13Z","git_url":"git://github.com/playfig/fund_america.git","ssh_url":"git@github.com:playfig/fund_america.git","clone_url":"https://github.com/playfig/fund_america.git","svn_url":"https://github.com/playfig/fund_america","homepage":"http://www.rubyeffect.com/blog/category/fundamerica/","size":53,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"playfig:master","ref":"master","sha":"bf0dca3b11ff8caf665f067bbbffe3d60590b9a6","user":{"login":"playfig","id":11932410,"avatar_url":"https://avatars.githubusercontent.com/u/11932410?v=3","gravatar_id":"","url":"https://api.github.com/users/playfig","html_url":"https://github.com/playfig","followers_url":"https://api.github.com/users/playfig/followers","following_url":"https://api.github.com/users/playfig/following{/other_user}","gists_url":"https://api.github.com/users/playfig/gists{/gist_id}","starred_url":"https://api.github.com/users/playfig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playfig/subscriptions","organizations_url":"https://api.github.com/users/playfig/orgs","repos_url":"https://api.github.com/users/playfig/repos","events_url":"https://api.github.com/users/playfig/events{/privacy}","received_events_url":"https://api.github.com/users/playfig/received_events","type":"Organization","site_admin":false},"repo":{"id":53089529,"name":"fund_america","full_name":"playfig/fund_america","owner":{"login":"playfig","id":11932410,"avatar_url":"https://avatars.githubusercontent.com/u/11932410?v=3","gravatar_id":"","url":"https://api.github.com/users/playfig","html_url":"https://github.com/playfig","followers_url":"https://api.github.com/users/playfig/followers","following_url":"https://api.github.com/users/playfig/following{/other_user}","gists_url":"https://api.github.com/users/playfig/gists{/gist_id}","starred_url":"https://api.github.com/users/playfig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playfig/subscriptions","organizations_url":"https://api.github.com/users/playfig/orgs","repos_url":"https://api.github.com/users/playfig/repos","events_url":"https://api.github.com/users/playfig/events{/privacy}","received_events_url":"https://api.github.com/users/playfig/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/playfig/fund_america","description":"This is a ruby gem to use the FundAmerica (http://www.fundamerica.com) API easily in your ruby, rails and sinatra apps built by RubyEffect (http://www.rubyeffect.com)","fork":true,"url":"https://api.github.com/repos/playfig/fund_america","forks_url":"https://api.github.com/repos/playfig/fund_america/forks","keys_url":"https://api.github.com/repos/playfig/fund_america/keys{/key_id}","collaborators_url":"https://api.github.com/repos/playfig/fund_america/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/playfig/fund_america/teams","hooks_url":"https://api.github.com/repos/playfig/fund_america/hooks","issue_events_url":"https://api.github.com/repos/playfig/fund_america/issues/events{/number}","events_url":"https://api.github.com/repos/playfig/fund_america/events","assignees_url":"https://api.github.com/repos/playfig/fund_america/assignees{/user}","branches_url":"https://api.github.com/repos/playfig/fund_america/branches{/branch}","tags_url":"https://api.github.com/repos/playfig/fund_america/tags","blobs_url":"https://api.github.com/repos/playfig/fund_america/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/playfig/fund_america/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/playfig/fund_america/git/refs{/sha}","trees_url":"https://api.github.com/repos/playfig/fund_america/git/trees{/sha}","statuses_url":"https://api.github.com/repos/playfig/fund_america/statuses/{sha}","languages_url":"https://api.github.com/repos/playfig/fund_america/languages","stargazers_url":"https://api.github.com/repos/playfig/fund_america/stargazers","contributors_url":"https://api.github.com/repos/playfig/fund_america/contributors","subscribers_url":"https://api.github.com/repos/playfig/fund_america/subscribers","subscription_url":"https://api.github.com/repos/playfig/fund_america/subscription","commits_url":"https://api.github.com/repos/playfig/fund_america/commits{/sha}","git_commits_url":"https://api.github.com/repos/playfig/fund_america/git/commits{/sha}","comments_url":"https://api.github.com/repos/playfig/fund_america/comments{/number}","issue_comment_url":"https://api.github.com/repos/playfig/fund_america/issues/comments{/number}","contents_url":"https://api.github.com/repos/playfig/fund_america/contents/{+path}","compare_url":"https://api.github.com/repos/playfig/fund_america/compare/{base}...{head}","merges_url":"https://api.github.com/repos/playfig/fund_america/merges","archive_url":"https://api.github.com/repos/playfig/fund_america/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/playfig/fund_america/downloads","issues_url":"https://api.github.com/repos/playfig/fund_america/issues{/number}","pulls_url":"https://api.github.com/repos/playfig/fund_america/pulls{/number}","milestones_url":"https://api.github.com/repos/playfig/fund_america/milestones{/number}","notifications_url":"https://api.github.com/repos/playfig/fund_america/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/playfig/fund_america/labels{/name}","releases_url":"https://api.github.com/repos/playfig/fund_america/releases{/id}","deployments_url":"https://api.github.com/repos/playfig/fund_america/deployments","created_at":"2016-03-03T22:39:37Z","updated_at":"2016-03-22T18:38:21Z","pushed_at":"2016-07-05T17:17:13Z","git_url":"git://github.com/playfig/fund_america.git","ssh_url":"git@github.com:playfig/fund_america.git","clone_url":"https://github.com/playfig/fund_america.git","svn_url":"https://github.com/playfig/fund_america","homepage":"http://www.rubyeffect.com/blog/category/fundamerica/","size":53,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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/playfig/fund_america/pulls/4"},"html":{"href":"https://github.com/playfig/fund_america/pull/4"},"issue":{"href":"https://api.github.com/repos/playfig/fund_america/issues/4"},"comments":{"href":"https://api.github.com/repos/playfig/fund_america/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/playfig/fund_america/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/playfig/fund_america/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/playfig/fund_america/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/playfig/fund_america/statuses/f4162695a9fbda5c7ca4c8d0c9a12d26cca44e43"}}}}
{"actor":{"display_login":"etrepum"}}