{"action":"created","comment":{"url":"https://api.github.com/repos/ripple/ripple-rest/pulls/comments/26518033","id":26518033,"diff_hunk":"@@ -12,56 +12,46 @@ var errors = require('./lib/errors');\n var serverLib = require('./lib/server-lib');\n var remote = require('./lib/remote');\n \n-module.exports = {\n-  info: {\n-    serverStatus: Info.serverStatus,\n-    isConnected: Info.isConnected,\n-    fee: Info.fee,\n-    uuid: Info.uuid\n-  },\n+function RippleAPI() {\n+  this.remote = remote;\n+}","path":"api/index.js","position":13,"original_position":13,"commit_id":"21d75bff4018d7ad69d2d3345c8ae7e44552d4d2","original_commit_id":"21d75bff4018d7ad69d2d3345c8ae7e44552d4d2","user":{"login":"clark800","id":1238722,"avatar_url":"https://avatars.githubusercontent.com/u/1238722?v=3","gravatar_id":"","url":"https://api.github.com/users/clark800","html_url":"https://github.com/clark800","followers_url":"https://api.github.com/users/clark800/followers","following_url":"https://api.github.com/users/clark800/following{/other_user}","gists_url":"https://api.github.com/users/clark800/gists{/gist_id}","starred_url":"https://api.github.com/users/clark800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clark800/subscriptions","organizations_url":"https://api.github.com/users/clark800/orgs","repos_url":"https://api.github.com/users/clark800/repos","events_url":"https://api.github.com/users/clark800/events{/privacy}","received_events_url":"https://api.github.com/users/clark800/received_events","type":"User","site_admin":false},"body":"All instances of RippleAPI would be using a remote singleton. We need to allow each instance of RippleAPI to have it's own instance of remote.\r\n\r\n    var remote = require('remote');    // this is a remote singleton\r\n    var Info = require('./info')(remote);    // Info is now tied to a single instance of remote","created_at":"2015-03-16T19:16:02Z","updated_at":"2015-03-16T19:16:02Z","html_url":"https://github.com/ripple/ripple-rest/pull/315#discussion_r26518033","pull_request_url":"https://api.github.com/repos/ripple/ripple-rest/pulls/315","_links":{"self":{"href":"https://api.github.com/repos/ripple/ripple-rest/pulls/comments/26518033"},"html":{"href":"https://github.com/ripple/ripple-rest/pull/315#discussion_r26518033"},"pull_request":{"href":"https://api.github.com/repos/ripple/ripple-rest/pulls/315"}}},"pull_request":{"url":"https://api.github.com/repos/ripple/ripple-rest/pulls/315","id":31168117,"html_url":"https://github.com/ripple/ripple-rest/pull/315","diff_url":"https://github.com/ripple/ripple-rest/pull/315.diff","patch_url":"https://github.com/ripple/ripple-rest/pull/315.patch","issue_url":"https://api.github.com/repos/ripple/ripple-rest/issues/315","number":315,"state":"open","locked":false,"title":"Use this.remote instead of global remote instance","user":{"login":"clark800","id":1238722,"avatar_url":"https://avatars.githubusercontent.com/u/1238722?v=3","gravatar_id":"","url":"https://api.github.com/users/clark800","html_url":"https://github.com/clark800","followers_url":"https://api.github.com/users/clark800/followers","following_url":"https://api.github.com/users/clark800/following{/other_user}","gists_url":"https://api.github.com/users/clark800/gists{/gist_id}","starred_url":"https://api.github.com/users/clark800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clark800/subscriptions","organizations_url":"https://api.github.com/users/clark800/orgs","repos_url":"https://api.github.com/users/clark800/repos","events_url":"https://api.github.com/users/clark800/events{/privacy}","received_events_url":"https://api.github.com/users/clark800/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-13T22:07:08Z","updated_at":"2015-03-16T19:16:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d00d9f4e27d7fa2b6ce63e3cc0b3755b84e4692d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ripple/ripple-rest/pulls/315/commits","review_comments_url":"https://api.github.com/repos/ripple/ripple-rest/pulls/315/comments","review_comment_url":"https://api.github.com/repos/ripple/ripple-rest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ripple/ripple-rest/issues/315/comments","statuses_url":"https://api.github.com/repos/ripple/ripple-rest/statuses/21d75bff4018d7ad69d2d3345c8ae7e44552d4d2","head":{"label":"clark800:this.remote","ref":"this.remote","sha":"21d75bff4018d7ad69d2d3345c8ae7e44552d4d2","user":{"login":"clark800","id":1238722,"avatar_url":"https://avatars.githubusercontent.com/u/1238722?v=3","gravatar_id":"","url":"https://api.github.com/users/clark800","html_url":"https://github.com/clark800","followers_url":"https://api.github.com/users/clark800/followers","following_url":"https://api.github.com/users/clark800/following{/other_user}","gists_url":"https://api.github.com/users/clark800/gists{/gist_id}","starred_url":"https://api.github.com/users/clark800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clark800/subscriptions","organizations_url":"https://api.github.com/users/clark800/orgs","repos_url":"https://api.github.com/users/clark800/repos","events_url":"https://api.github.com/users/clark800/events{/privacy}","received_events_url":"https://api.github.com/users/clark800/received_events","type":"User","site_admin":false},"repo":{"id":27503734,"name":"ripple-rest","full_name":"clark800/ripple-rest","owner":{"login":"clark800","id":1238722,"avatar_url":"https://avatars.githubusercontent.com/u/1238722?v=3","gravatar_id":"","url":"https://api.github.com/users/clark800","html_url":"https://github.com/clark800","followers_url":"https://api.github.com/users/clark800/followers","following_url":"https://api.github.com/users/clark800/following{/other_user}","gists_url":"https://api.github.com/users/clark800/gists{/gist_id}","starred_url":"https://api.github.com/users/clark800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clark800/subscriptions","organizations_url":"https://api.github.com/users/clark800/orgs","repos_url":"https://api.github.com/users/clark800/repos","events_url":"https://api.github.com/users/clark800/events{/privacy}","received_events_url":"https://api.github.com/users/clark800/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clark800/ripple-rest","description":"A RESTful API for submitting payments and monitoring accounts on the Ripple Network","fork":true,"url":"https://api.github.com/repos/clark800/ripple-rest","forks_url":"https://api.github.com/repos/clark800/ripple-rest/forks","keys_url":"https://api.github.com/repos/clark800/ripple-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clark800/ripple-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clark800/ripple-rest/teams","hooks_url":"https://api.github.com/repos/clark800/ripple-rest/hooks","issue_events_url":"https://api.github.com/repos/clark800/ripple-rest/issues/events{/number}","events_url":"https://api.github.com/repos/clark800/ripple-rest/events","assignees_url":"https://api.github.com/repos/clark800/ripple-rest/assignees{/user}","branches_url":"https://api.github.com/repos/clark800/ripple-rest/branches{/branch}","tags_url":"https://api.github.com/repos/clark800/ripple-rest/tags","blobs_url":"https://api.github.com/repos/clark800/ripple-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clark800/ripple-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clark800/ripple-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/clark800/ripple-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clark800/ripple-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/clark800/ripple-rest/languages","stargazers_url":"https://api.github.com/repos/clark800/ripple-rest/stargazers","contributors_url":"https://api.github.com/repos/clark800/ripple-rest/contributors","subscribers_url":"https://api.github.com/repos/clark800/ripple-rest/subscribers","subscription_url":"https://api.github.com/repos/clark800/ripple-rest/subscription","commits_url":"https://api.github.com/repos/clark800/ripple-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/clark800/ripple-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/clark800/ripple-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/clark800/ripple-rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/clark800/ripple-rest/contents/{+path}","compare_url":"https://api.github.com/repos/clark800/ripple-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clark800/ripple-rest/merges","archive_url":"https://api.github.com/repos/clark800/ripple-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clark800/ripple-rest/downloads","issues_url":"https://api.github.com/repos/clark800/ripple-rest/issues{/number}","pulls_url":"https://api.github.com/repos/clark800/ripple-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/clark800/ripple-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/clark800/ripple-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clark800/ripple-rest/labels{/name}","releases_url":"https://api.github.com/repos/clark800/ripple-rest/releases{/id}","created_at":"2014-12-03T19:28:02Z","updated_at":"2014-12-03T20:43:58Z","pushed_at":"2015-03-13T22:04:27Z","git_url":"git://github.com/clark800/ripple-rest.git","ssh_url":"git@github.com:clark800/ripple-rest.git","clone_url":"https://github.com/clark800/ripple-rest.git","svn_url":"https://github.com/clark800/ripple-rest","homepage":"","size":2536,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"ripple:develop","ref":"develop","sha":"feb9074aded6fb629e18129a71255e79902a68f2","user":{"login":"ripple","id":3165523,"avatar_url":"https://avatars.githubusercontent.com/u/3165523?v=3","gravatar_id":"","url":"https://api.github.com/users/ripple","html_url":"https://github.com/ripple","followers_url":"https://api.github.com/users/ripple/followers","following_url":"https://api.github.com/users/ripple/following{/other_user}","gists_url":"https://api.github.com/users/ripple/gists{/gist_id}","starred_url":"https://api.github.com/users/ripple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripple/subscriptions","organizations_url":"https://api.github.com/users/ripple/orgs","repos_url":"https://api.github.com/users/ripple/repos","events_url":"https://api.github.com/users/ripple/events{/privacy}","received_events_url":"https://api.github.com/users/ripple/received_events","type":"Organization","site_admin":false},"repo":{"id":16561603,"name":"ripple-rest","full_name":"ripple/ripple-rest","owner":{"login":"ripple","id":3165523,"avatar_url":"https://avatars.githubusercontent.com/u/3165523?v=3","gravatar_id":"","url":"https://api.github.com/users/ripple","html_url":"https://github.com/ripple","followers_url":"https://api.github.com/users/ripple/followers","following_url":"https://api.github.com/users/ripple/following{/other_user}","gists_url":"https://api.github.com/users/ripple/gists{/gist_id}","starred_url":"https://api.github.com/users/ripple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripple/subscriptions","organizations_url":"https://api.github.com/users/ripple/orgs","repos_url":"https://api.github.com/users/ripple/repos","events_url":"https://api.github.com/users/ripple/events{/privacy}","received_events_url":"https://api.github.com/users/ripple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ripple/ripple-rest","description":"A RESTful API for submitting payments and monitoring accounts on the Ripple Network","fork":false,"url":"https://api.github.com/repos/ripple/ripple-rest","forks_url":"https://api.github.com/repos/ripple/ripple-rest/forks","keys_url":"https://api.github.com/repos/ripple/ripple-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ripple/ripple-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ripple/ripple-rest/teams","hooks_url":"https://api.github.com/repos/ripple/ripple-rest/hooks","issue_events_url":"https://api.github.com/repos/ripple/ripple-rest/issues/events{/number}","events_url":"https://api.github.com/repos/ripple/ripple-rest/events","assignees_url":"https://api.github.com/repos/ripple/ripple-rest/assignees{/user}","branches_url":"https://api.github.com/repos/ripple/ripple-rest/branches{/branch}","tags_url":"https://api.github.com/repos/ripple/ripple-rest/tags","blobs_url":"https://api.github.com/repos/ripple/ripple-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ripple/ripple-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ripple/ripple-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/ripple/ripple-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ripple/ripple-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/ripple/ripple-rest/languages","stargazers_url":"https://api.github.com/repos/ripple/ripple-rest/stargazers","contributors_url":"https://api.github.com/repos/ripple/ripple-rest/contributors","subscribers_url":"https://api.github.com/repos/ripple/ripple-rest/subscribers","subscription_url":"https://api.github.com/repos/ripple/ripple-rest/subscription","commits_url":"https://api.github.com/repos/ripple/ripple-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/ripple/ripple-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/ripple/ripple-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/ripple/ripple-rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/ripple/ripple-rest/contents/{+path}","compare_url":"https://api.github.com/repos/ripple/ripple-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ripple/ripple-rest/merges","archive_url":"https://api.github.com/repos/ripple/ripple-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ripple/ripple-rest/downloads","issues_url":"https://api.github.com/repos/ripple/ripple-rest/issues{/number}","pulls_url":"https://api.github.com/repos/ripple/ripple-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/ripple/ripple-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/ripple/ripple-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ripple/ripple-rest/labels{/name}","releases_url":"https://api.github.com/repos/ripple/ripple-rest/releases{/id}","created_at":"2014-02-05T22:52:44Z","updated_at":"2015-03-12T23:50:34Z","pushed_at":"2015-03-12T23:50:33Z","git_url":"git://github.com/ripple/ripple-rest.git","ssh_url":"git@github.com:ripple/ripple-rest.git","clone_url":"https://github.com/ripple/ripple-rest.git","svn_url":"https://github.com/ripple/ripple-rest","homepage":"","size":6157,"stargazers_count":62,"watchers_count":62,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":6,"forks":69,"open_issues":6,"watchers":62,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ripple/ripple-rest/pulls/315"},"html":{"href":"https://github.com/ripple/ripple-rest/pull/315"},"issue":{"href":"https://api.github.com/repos/ripple/ripple-rest/issues/315"},"comments":{"href":"https://api.github.com/repos/ripple/ripple-rest/issues/315/comments"},"review_comments":{"href":"https://api.github.com/repos/ripple/ripple-rest/pulls/315/comments"},"review_comment":{"href":"https://api.github.com/repos/ripple/ripple-rest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ripple/ripple-rest/pulls/315/commits"},"statuses":{"href":"https://api.github.com/repos/ripple/ripple-rest/statuses/21d75bff4018d7ad69d2d3345c8ae7e44552d4d2"}}}}