{"action":"created","comment":{"url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls/comments/68410055","id":68410055,"diff_hunk":"@@ -21,4 +34,72 @@\n       end\n     end\n   end\n+\n+  describe \"#create\" do\n+    it \"creates a credit card\" do\n+      VCR.use_cassette(\"credit_cards/create/success\") do\n+        credit_card = subject.create(params)\n+        expect(credit_card).to be_a(entity_klass)\n+        expect(credit_card.id).to eql(3)\n+        expect(credit_card.number).to eq(\"401200******1112\")\n+        expect(credit_card.holder_name).to eq(\"JOÃO DAS COUVES\")\n+        expect(credit_card.charge_config_id).to eq(1)\n+        expect(credit_card.payer_id).to eq(1)\n+      end\n+    end\n+  end\n+\n+  describe \"#list\" do\n+    let(:token) { \"3ef651d88bbaaa5e77ee4768bc793fd4\" }\n+\n+    it \"returns an array of all credit cards\" do\n+      VCR.use_cassette(\"credit_cards/list/success\") do\n+        credit_cards = subject.list\n+        expect(credit_cards.count).to eql(14)\n+        expect(credit_cards).to be_a(Array)\n+        credit_cards.each do |cc|\n+          expect(cc).to be_a(entity_klass)\n+        end\n+      end\n+    end\n+\n+    it \"returns an array of all credit cards filtered\" do\n+      VCR.use_cassette(\"credit_cards/list/success-filtered\") do\n+        credit_cards = subject.list(brand: \"mastercard\", charge_config_id: 1)\n+        expect(credit_cards.count).to eql(1)\n+        expect(credit_cards).to be_a(Array)\n+        credit_cards.each do |cc|\n+          expect(cc).to be_a(entity_klass)\n+          expect(cc.brand).to eql(\"mastercard\")\n+          expect(cc.charge_config_id).to eql(1)\n+        end\n+      end\n+    end\n+  end\n+\n+  describe \"#charges\" do\n+    let(:token) { \"3ef651d88bbaaa5e77ee4768bc793fd4\" }\n+\n+    it \"returns an array of all charges from a credit card\" do\n+      VCR.use_cassette(\"credit_cards/charges/success\") do\n+        charges = subject.charges(13)\n+        expect(charges.count).to eql(15)\n+        expect(charges).to be_a(Array)\n+        charges.each do |c|\n+          expect(c).to be_a(Cobrato::Entities::Charge)\n+        end\n+      end\n+    end\n+\n+    it \"returns an array of all charges from a credit card paginated\" do\n+      VCR.use_cassette(\"credit_cards/charges/success-paginated\") do\n+        charges = subject.charges(13, { page: 2, per_page: 5 })","path":"spec/cobrato/resources/credit_card_spec.rb","position":95,"original_position":95,"commit_id":"7851c396a3f8b516ced5b6869de7e7f9a7531ad7","original_commit_id":"7851c396a3f8b516ced5b6869de7e7f9a7531ad7","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":"Redundant curly braces around a hash parameter.","created_at":"2016-06-24T14:53:58Z","updated_at":"2016-06-24T14:53:58Z","html_url":"https://github.com/myfreecomm/cobrato-client-ruby/pull/19#discussion_r68410055","pull_request_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls/comments/68410055"},"html":{"href":"https://github.com/myfreecomm/cobrato-client-ruby/pull/19#discussion_r68410055"},"pull_request":{"href":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls/19","id":74839338,"html_url":"https://github.com/myfreecomm/cobrato-client-ruby/pull/19","diff_url":"https://github.com/myfreecomm/cobrato-client-ruby/pull/19.diff","patch_url":"https://github.com/myfreecomm/cobrato-client-ruby/pull/19.patch","issue_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/issues/19","number":19,"state":"open","locked":false,"title":"Change and storage credit card by payer","user":{"login":"jcomello","id":2027411,"avatar_url":"https://avatars.githubusercontent.com/u/2027411?v=3","gravatar_id":"","url":"https://api.github.com/users/jcomello","html_url":"https://github.com/jcomello","followers_url":"https://api.github.com/users/jcomello/followers","following_url":"https://api.github.com/users/jcomello/following{/other_user}","gists_url":"https://api.github.com/users/jcomello/gists{/gist_id}","starred_url":"https://api.github.com/users/jcomello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcomello/subscriptions","organizations_url":"https://api.github.com/users/jcomello/orgs","repos_url":"https://api.github.com/users/jcomello/repos","events_url":"https://api.github.com/users/jcomello/events{/privacy}","received_events_url":"https://api.github.com/users/jcomello/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-22T19:07:10Z","updated_at":"2016-06-24T14:53:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a9a30b8205bd75001b278171449b8348024efba","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls/19/commits","review_comments_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls/19/comments","review_comment_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/issues/19/comments","statuses_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/statuses/7851c396a3f8b516ced5b6869de7e7f9a7531ad7","head":{"label":"myfreecomm:change-and-storage-credit-card","ref":"change-and-storage-credit-card","sha":"7851c396a3f8b516ced5b6869de7e7f9a7531ad7","user":{"login":"myfreecomm","id":86764,"avatar_url":"https://avatars.githubusercontent.com/u/86764?v=3","gravatar_id":"","url":"https://api.github.com/users/myfreecomm","html_url":"https://github.com/myfreecomm","followers_url":"https://api.github.com/users/myfreecomm/followers","following_url":"https://api.github.com/users/myfreecomm/following{/other_user}","gists_url":"https://api.github.com/users/myfreecomm/gists{/gist_id}","starred_url":"https://api.github.com/users/myfreecomm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myfreecomm/subscriptions","organizations_url":"https://api.github.com/users/myfreecomm/orgs","repos_url":"https://api.github.com/users/myfreecomm/repos","events_url":"https://api.github.com/users/myfreecomm/events{/privacy}","received_events_url":"https://api.github.com/users/myfreecomm/received_events","type":"Organization","site_admin":false},"repo":{"id":37599254,"name":"cobrato-client-ruby","full_name":"myfreecomm/cobrato-client-ruby","owner":{"login":"myfreecomm","id":86764,"avatar_url":"https://avatars.githubusercontent.com/u/86764?v=3","gravatar_id":"","url":"https://api.github.com/users/myfreecomm","html_url":"https://github.com/myfreecomm","followers_url":"https://api.github.com/users/myfreecomm/followers","following_url":"https://api.github.com/users/myfreecomm/following{/other_user}","gists_url":"https://api.github.com/users/myfreecomm/gists{/gist_id}","starred_url":"https://api.github.com/users/myfreecomm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myfreecomm/subscriptions","organizations_url":"https://api.github.com/users/myfreecomm/orgs","repos_url":"https://api.github.com/users/myfreecomm/repos","events_url":"https://api.github.com/users/myfreecomm/events{/privacy}","received_events_url":"https://api.github.com/users/myfreecomm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/myfreecomm/cobrato-client-ruby","description":"Official Ruby client for the Cobrato API","fork":false,"url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby","forks_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/forks","keys_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/teams","hooks_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/hooks","issue_events_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/events","assignees_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/tags","blobs_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/languages","stargazers_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/stargazers","contributors_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/contributors","subscribers_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/subscribers","subscription_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/subscription","commits_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/merges","archive_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/downloads","issues_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/labels{/name}","releases_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/deployments","created_at":"2015-06-17T14:17:11Z","updated_at":"2016-01-15T19:08:39Z","pushed_at":"2016-06-24T14:53:54Z","git_url":"git://github.com/myfreecomm/cobrato-client-ruby.git","ssh_url":"git@github.com:myfreecomm/cobrato-client-ruby.git","clone_url":"https://github.com/myfreecomm/cobrato-client-ruby.git","svn_url":"https://github.com/myfreecomm/cobrato-client-ruby","homepage":null,"size":231,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"myfreecomm:master","ref":"master","sha":"bbbd8320f1f432c5e87f64eddbfdfc570034d231","user":{"login":"myfreecomm","id":86764,"avatar_url":"https://avatars.githubusercontent.com/u/86764?v=3","gravatar_id":"","url":"https://api.github.com/users/myfreecomm","html_url":"https://github.com/myfreecomm","followers_url":"https://api.github.com/users/myfreecomm/followers","following_url":"https://api.github.com/users/myfreecomm/following{/other_user}","gists_url":"https://api.github.com/users/myfreecomm/gists{/gist_id}","starred_url":"https://api.github.com/users/myfreecomm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myfreecomm/subscriptions","organizations_url":"https://api.github.com/users/myfreecomm/orgs","repos_url":"https://api.github.com/users/myfreecomm/repos","events_url":"https://api.github.com/users/myfreecomm/events{/privacy}","received_events_url":"https://api.github.com/users/myfreecomm/received_events","type":"Organization","site_admin":false},"repo":{"id":37599254,"name":"cobrato-client-ruby","full_name":"myfreecomm/cobrato-client-ruby","owner":{"login":"myfreecomm","id":86764,"avatar_url":"https://avatars.githubusercontent.com/u/86764?v=3","gravatar_id":"","url":"https://api.github.com/users/myfreecomm","html_url":"https://github.com/myfreecomm","followers_url":"https://api.github.com/users/myfreecomm/followers","following_url":"https://api.github.com/users/myfreecomm/following{/other_user}","gists_url":"https://api.github.com/users/myfreecomm/gists{/gist_id}","starred_url":"https://api.github.com/users/myfreecomm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myfreecomm/subscriptions","organizations_url":"https://api.github.com/users/myfreecomm/orgs","repos_url":"https://api.github.com/users/myfreecomm/repos","events_url":"https://api.github.com/users/myfreecomm/events{/privacy}","received_events_url":"https://api.github.com/users/myfreecomm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/myfreecomm/cobrato-client-ruby","description":"Official Ruby client for the Cobrato API","fork":false,"url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby","forks_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/forks","keys_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/teams","hooks_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/hooks","issue_events_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/events","assignees_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/tags","blobs_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/languages","stargazers_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/stargazers","contributors_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/contributors","subscribers_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/subscribers","subscription_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/subscription","commits_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/merges","archive_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/downloads","issues_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/labels{/name}","releases_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/deployments","created_at":"2015-06-17T14:17:11Z","updated_at":"2016-01-15T19:08:39Z","pushed_at":"2016-06-24T14:53:54Z","git_url":"git://github.com/myfreecomm/cobrato-client-ruby.git","ssh_url":"git@github.com:myfreecomm/cobrato-client-ruby.git","clone_url":"https://github.com/myfreecomm/cobrato-client-ruby.git","svn_url":"https://github.com/myfreecomm/cobrato-client-ruby","homepage":null,"size":231,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/myfreecomm/cobrato-client-ruby/pulls/19"},"html":{"href":"https://github.com/myfreecomm/cobrato-client-ruby/pull/19"},"issue":{"href":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/issues/19"},"comments":{"href":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/myfreecomm/cobrato-client-ruby/statuses/7851c396a3f8b516ced5b6869de7e7f9a7531ad7"}}}}
{"actor":{"display_login":"houndci-bot"}}