{"action":"created","comment":{"url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls/comments/52837698","id":52837698,"diff_hunk":"@@ -3,13 +3,13 @@ module Actions\n \n     module Find\n \n-      def find(params={})\n-        response = client.get(\"find\", params)\n+      def find(params={}, session = CurrencyCloud.session)","path":"lib/currency_cloud/actions/find.rb","position":6,"original_position":6,"commit_id":"8dcc201988b8ae187c61c81eeb3cf01299d91276","original_commit_id":"8dcc201988b8ae187c61c81eeb3cf01299d91276","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","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":"Surrounding space missing in default value assignment.","created_at":"2016-02-14T04:16:16Z","updated_at":"2016-02-14T04:16:16Z","html_url":"https://github.com/CurrencyCloud/currencycloud-ruby/pull/9#discussion_r52837698","pull_request_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls/comments/52837698"},"html":{"href":"https://github.com/CurrencyCloud/currencycloud-ruby/pull/9#discussion_r52837698"},"pull_request":{"href":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls/9","id":59286599,"html_url":"https://github.com/CurrencyCloud/currencycloud-ruby/pull/9","diff_url":"https://github.com/CurrencyCloud/currencycloud-ruby/pull/9.diff","patch_url":"https://github.com/CurrencyCloud/currencycloud-ruby/pull/9.patch","issue_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/issues/9","number":9,"state":"open","locked":false,"title":"[wip] Remove Global properties","user":{"login":"artsyca","id":364015,"avatar_url":"https://avatars.githubusercontent.com/u/364015?v=3","gravatar_id":"","url":"https://api.github.com/users/artsyca","html_url":"https://github.com/artsyca","followers_url":"https://api.github.com/users/artsyca/followers","following_url":"https://api.github.com/users/artsyca/following{/other_user}","gists_url":"https://api.github.com/users/artsyca/gists{/gist_id}","starred_url":"https://api.github.com/users/artsyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsyca/subscriptions","organizations_url":"https://api.github.com/users/artsyca/orgs","repos_url":"https://api.github.com/users/artsyca/repos","events_url":"https://api.github.com/users/artsyca/events{/privacy}","received_events_url":"https://api.github.com/users/artsyca/received_events","type":"User","site_admin":false},"body":"@rjnienaber This is just a proof of concept.\r\n\r\nThe idea is it can use a global `CurrencyCloud.session` object (to preserve existing behaviour), but any `action` can also take a session as the last param, allowing for multi-User setup to use multiple sessions.\r\n\r\nObviously this needs to be tested, but what do you think of it as an initial way to allow multiple API tokens? I think this also relates to #3 .","created_at":"2016-02-14T04:16:10Z","updated_at":"2016-02-14T04:16:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"572119e8882b476947a20e291152da8072ba2fdf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls/9/commits","review_comments_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls/9/comments","review_comment_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/issues/9/comments","statuses_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/statuses/8dcc201988b8ae187c61c81eeb3cf01299d91276","head":{"label":"artsyca:support/multi-client/1","ref":"support/multi-client/1","sha":"8dcc201988b8ae187c61c81eeb3cf01299d91276","user":{"login":"artsyca","id":364015,"avatar_url":"https://avatars.githubusercontent.com/u/364015?v=3","gravatar_id":"","url":"https://api.github.com/users/artsyca","html_url":"https://github.com/artsyca","followers_url":"https://api.github.com/users/artsyca/followers","following_url":"https://api.github.com/users/artsyca/following{/other_user}","gists_url":"https://api.github.com/users/artsyca/gists{/gist_id}","starred_url":"https://api.github.com/users/artsyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsyca/subscriptions","organizations_url":"https://api.github.com/users/artsyca/orgs","repos_url":"https://api.github.com/users/artsyca/repos","events_url":"https://api.github.com/users/artsyca/events{/privacy}","received_events_url":"https://api.github.com/users/artsyca/received_events","type":"User","site_admin":false},"repo":{"id":51615044,"name":"currencycloud-ruby","full_name":"artsyca/currencycloud-ruby","owner":{"login":"artsyca","id":364015,"avatar_url":"https://avatars.githubusercontent.com/u/364015?v=3","gravatar_id":"","url":"https://api.github.com/users/artsyca","html_url":"https://github.com/artsyca","followers_url":"https://api.github.com/users/artsyca/followers","following_url":"https://api.github.com/users/artsyca/following{/other_user}","gists_url":"https://api.github.com/users/artsyca/gists{/gist_id}","starred_url":"https://api.github.com/users/artsyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsyca/subscriptions","organizations_url":"https://api.github.com/users/artsyca/orgs","repos_url":"https://api.github.com/users/artsyca/repos","events_url":"https://api.github.com/users/artsyca/events{/privacy}","received_events_url":"https://api.github.com/users/artsyca/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/artsyca/currencycloud-ruby","description":"Ruby implementation of API v2","fork":true,"url":"https://api.github.com/repos/artsyca/currencycloud-ruby","forks_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/forks","keys_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/teams","hooks_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/hooks","issue_events_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/events","assignees_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/tags","blobs_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/languages","stargazers_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/stargazers","contributors_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/contributors","subscribers_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/subscribers","subscription_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/subscription","commits_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/merges","archive_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/downloads","issues_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/labels{/name}","releases_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/artsyca/currencycloud-ruby/deployments","created_at":"2016-02-12T20:40:40Z","updated_at":"2016-02-12T20:40:41Z","pushed_at":"2016-02-14T04:12:05Z","git_url":"git://github.com/artsyca/currencycloud-ruby.git","ssh_url":"git@github.com:artsyca/currencycloud-ruby.git","clone_url":"https://github.com/artsyca/currencycloud-ruby.git","svn_url":"https://github.com/artsyca/currencycloud-ruby","homepage":"","size":86,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CurrencyCloud:master","ref":"master","sha":"9323dd6ee9e337ee171c12a5b6fbc6067bbbb5b7","user":{"login":"CurrencyCloud","id":10469178,"avatar_url":"https://avatars.githubusercontent.com/u/10469178?v=3","gravatar_id":"","url":"https://api.github.com/users/CurrencyCloud","html_url":"https://github.com/CurrencyCloud","followers_url":"https://api.github.com/users/CurrencyCloud/followers","following_url":"https://api.github.com/users/CurrencyCloud/following{/other_user}","gists_url":"https://api.github.com/users/CurrencyCloud/gists{/gist_id}","starred_url":"https://api.github.com/users/CurrencyCloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CurrencyCloud/subscriptions","organizations_url":"https://api.github.com/users/CurrencyCloud/orgs","repos_url":"https://api.github.com/users/CurrencyCloud/repos","events_url":"https://api.github.com/users/CurrencyCloud/events{/privacy}","received_events_url":"https://api.github.com/users/CurrencyCloud/received_events","type":"Organization","site_admin":false},"repo":{"id":33677478,"name":"currencycloud-ruby","full_name":"CurrencyCloud/currencycloud-ruby","owner":{"login":"CurrencyCloud","id":10469178,"avatar_url":"https://avatars.githubusercontent.com/u/10469178?v=3","gravatar_id":"","url":"https://api.github.com/users/CurrencyCloud","html_url":"https://github.com/CurrencyCloud","followers_url":"https://api.github.com/users/CurrencyCloud/followers","following_url":"https://api.github.com/users/CurrencyCloud/following{/other_user}","gists_url":"https://api.github.com/users/CurrencyCloud/gists{/gist_id}","starred_url":"https://api.github.com/users/CurrencyCloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CurrencyCloud/subscriptions","organizations_url":"https://api.github.com/users/CurrencyCloud/orgs","repos_url":"https://api.github.com/users/CurrencyCloud/repos","events_url":"https://api.github.com/users/CurrencyCloud/events{/privacy}","received_events_url":"https://api.github.com/users/CurrencyCloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CurrencyCloud/currencycloud-ruby","description":"Ruby implementation of API v2","fork":false,"url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby","forks_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/forks","keys_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/teams","hooks_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/hooks","issue_events_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/events","assignees_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/tags","blobs_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/languages","stargazers_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/stargazers","contributors_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/contributors","subscribers_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/subscribers","subscription_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/subscription","commits_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/merges","archive_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/downloads","issues_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/labels{/name}","releases_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/deployments","created_at":"2015-04-09T15:39:32Z","updated_at":"2015-12-13T21:23:31Z","pushed_at":"2016-02-14T04:16:11Z","git_url":"git://github.com/CurrencyCloud/currencycloud-ruby.git","ssh_url":"git@github.com:CurrencyCloud/currencycloud-ruby.git","clone_url":"https://github.com/CurrencyCloud/currencycloud-ruby.git","svn_url":"https://github.com/CurrencyCloud/currencycloud-ruby","homepage":"","size":306,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls/9"},"html":{"href":"https://github.com/CurrencyCloud/currencycloud-ruby/pull/9"},"issue":{"href":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/issues/9"},"comments":{"href":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/CurrencyCloud/currencycloud-ruby/statuses/8dcc201988b8ae187c61c81eeb3cf01299d91276"}}}}