{"action":"created","comment":{"url":"https://api.github.com/repos/plated/vantiv-ruby/pulls/comments/74979808","id":74979808,"diff_hunk":"@@ -1,51 +1,51 @@\n module Vantiv\n   module Api\n+    class CardTokenInfo\n+      attr_accessor :payment_account_id, :card_type, :expiry_month, :expiry_year, :bin\n+    end\n+\n+    class ExtendedCardResponse\n+      attr_accessor :code, :message\n+    end\n+\n     class AccountUpdaterResponse\n-      def initialize(account_updater)\n-        @account_updater_response = account_updater\n+      attr_accessor :original_card_token_info, :new_card_token_info, :extended_card_response\n+\n+      def initialize\n+        @new_card_token_info = CardTokenInfo.new\n+        @extended_card_response = ExtendedCardResponse.new\n       end\n \n       def payment_account_id\n-        new_card_token_info[\"PaymentAccountID\"]\n+        new_card_token_info.payment_account_id\n       end\n \n       def card_type\n-        new_card_token_info[\"Type\"]\n+        new_card_token_info.card_type\n       end\n \n       def expiry_month\n-        new_card_token_info[\"ExpirationMonth\"]\n+        new_card_token_info.expiry_month\n       end\n \n       def expiry_year\n-        new_card_token_info[\"ExpirationYear\"]\n+        new_card_token_info.expiry_year\n       end\n \n       def extended_card_response_code\n-        extended_card_response[\"code\"]\n+        extended_card_response.code","path":"lib/vantiv/api/account_updater_response.rb","position":43,"original_position":43,"commit_id":"6abaae67da3002dbfcd2eefe37da9506c37daeed","original_commit_id":"6abaae67da3002dbfcd2eefe37da9506c37daeed","user":{"login":"ryanong","id":206333,"avatar_url":"https://avatars.githubusercontent.com/u/206333?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanong","html_url":"https://github.com/ryanong","followers_url":"https://api.github.com/users/ryanong/followers","following_url":"https://api.github.com/users/ryanong/following{/other_user}","gists_url":"https://api.github.com/users/ryanong/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanong/subscriptions","organizations_url":"https://api.github.com/users/ryanong/orgs","repos_url":"https://api.github.com/users/ryanong/repos","events_url":"https://api.github.com/users/ryanong/events{/privacy}","received_events_url":"https://api.github.com/users/ryanong/received_events","type":"User","site_admin":false},"body":"delegate with prefix?","created_at":"2016-08-16T17:22:03Z","updated_at":"2016-08-16T17:22:03Z","html_url":"https://github.com/plated/vantiv-ruby/pull/60#discussion_r74979808","pull_request_url":"https://api.github.com/repos/plated/vantiv-ruby/pulls/60","_links":{"self":{"href":"https://api.github.com/repos/plated/vantiv-ruby/pulls/comments/74979808"},"html":{"href":"https://github.com/plated/vantiv-ruby/pull/60#discussion_r74979808"},"pull_request":{"href":"https://api.github.com/repos/plated/vantiv-ruby/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/plated/vantiv-ruby/pulls/60","id":80839596,"html_url":"https://github.com/plated/vantiv-ruby/pull/60","diff_url":"https://github.com/plated/vantiv-ruby/pull/60.diff","patch_url":"https://github.com/plated/vantiv-ruby/pull/60.patch","issue_url":"https://api.github.com/repos/plated/vantiv-ruby/issues/60","number":60,"state":"open","locked":false,"title":"[WIP] use response objects rather than hashes","user":{"login":"scottbartell","id":1071954,"avatar_url":"https://avatars.githubusercontent.com/u/1071954?v=3","gravatar_id":"","url":"https://api.github.com/users/scottbartell","html_url":"https://github.com/scottbartell","followers_url":"https://api.github.com/users/scottbartell/followers","following_url":"https://api.github.com/users/scottbartell/following{/other_user}","gists_url":"https://api.github.com/users/scottbartell/gists{/gist_id}","starred_url":"https://api.github.com/users/scottbartell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottbartell/subscriptions","organizations_url":"https://api.github.com/users/scottbartell/orgs","repos_url":"https://api.github.com/users/scottbartell/repos","events_url":"https://api.github.com/users/scottbartell/events{/privacy}","received_events_url":"https://api.github.com/users/scottbartell/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-10T18:03:33Z","updated_at":"2016-08-16T17:22:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1b6fe003267fb948f01cc4775a08972f2cc0c73","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/plated/vantiv-ruby/pulls/60/commits","review_comments_url":"https://api.github.com/repos/plated/vantiv-ruby/pulls/60/comments","review_comment_url":"https://api.github.com/repos/plated/vantiv-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plated/vantiv-ruby/issues/60/comments","statuses_url":"https://api.github.com/repos/plated/vantiv-ruby/statuses/6abaae67da3002dbfcd2eefe37da9506c37daeed","head":{"label":"plated:refactor-response","ref":"refactor-response","sha":"6abaae67da3002dbfcd2eefe37da9506c37daeed","user":{"login":"plated","id":4378191,"avatar_url":"https://avatars.githubusercontent.com/u/4378191?v=3","gravatar_id":"","url":"https://api.github.com/users/plated","html_url":"https://github.com/plated","followers_url":"https://api.github.com/users/plated/followers","following_url":"https://api.github.com/users/plated/following{/other_user}","gists_url":"https://api.github.com/users/plated/gists{/gist_id}","starred_url":"https://api.github.com/users/plated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plated/subscriptions","organizations_url":"https://api.github.com/users/plated/orgs","repos_url":"https://api.github.com/users/plated/repos","events_url":"https://api.github.com/users/plated/events{/privacy}","received_events_url":"https://api.github.com/users/plated/received_events","type":"Organization","site_admin":false},"repo":{"id":52479361,"name":"vantiv-ruby","full_name":"plated/vantiv-ruby","owner":{"login":"plated","id":4378191,"avatar_url":"https://avatars.githubusercontent.com/u/4378191?v=3","gravatar_id":"","url":"https://api.github.com/users/plated","html_url":"https://github.com/plated","followers_url":"https://api.github.com/users/plated/followers","following_url":"https://api.github.com/users/plated/following{/other_user}","gists_url":"https://api.github.com/users/plated/gists{/gist_id}","starred_url":"https://api.github.com/users/plated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plated/subscriptions","organizations_url":"https://api.github.com/users/plated/orgs","repos_url":"https://api.github.com/users/plated/repos","events_url":"https://api.github.com/users/plated/events{/privacy}","received_events_url":"https://api.github.com/users/plated/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plated/vantiv-ruby","description":"A simple ruby client to use Vantiv's DevHub API","fork":false,"url":"https://api.github.com/repos/plated/vantiv-ruby","forks_url":"https://api.github.com/repos/plated/vantiv-ruby/forks","keys_url":"https://api.github.com/repos/plated/vantiv-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plated/vantiv-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plated/vantiv-ruby/teams","hooks_url":"https://api.github.com/repos/plated/vantiv-ruby/hooks","issue_events_url":"https://api.github.com/repos/plated/vantiv-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/plated/vantiv-ruby/events","assignees_url":"https://api.github.com/repos/plated/vantiv-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/plated/vantiv-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/plated/vantiv-ruby/tags","blobs_url":"https://api.github.com/repos/plated/vantiv-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plated/vantiv-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plated/vantiv-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/plated/vantiv-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plated/vantiv-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/plated/vantiv-ruby/languages","stargazers_url":"https://api.github.com/repos/plated/vantiv-ruby/stargazers","contributors_url":"https://api.github.com/repos/plated/vantiv-ruby/contributors","subscribers_url":"https://api.github.com/repos/plated/vantiv-ruby/subscribers","subscription_url":"https://api.github.com/repos/plated/vantiv-ruby/subscription","commits_url":"https://api.github.com/repos/plated/vantiv-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/plated/vantiv-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/plated/vantiv-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/plated/vantiv-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/plated/vantiv-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/plated/vantiv-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plated/vantiv-ruby/merges","archive_url":"https://api.github.com/repos/plated/vantiv-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plated/vantiv-ruby/downloads","issues_url":"https://api.github.com/repos/plated/vantiv-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/plated/vantiv-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/plated/vantiv-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/plated/vantiv-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plated/vantiv-ruby/labels{/name}","releases_url":"https://api.github.com/repos/plated/vantiv-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/plated/vantiv-ruby/deployments","created_at":"2016-02-24T22:34:04Z","updated_at":"2016-05-04T20:23:58Z","pushed_at":"2016-08-16T16:54:55Z","git_url":"git://github.com/plated/vantiv-ruby.git","ssh_url":"git@github.com:plated/vantiv-ruby.git","clone_url":"https://github.com/plated/vantiv-ruby.git","svn_url":"https://github.com/plated/vantiv-ruby","homepage":"","size":282,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":4,"default_branch":"master"}},"base":{"label":"plated:master","ref":"master","sha":"874b86cb8bd5b9651d2e8860dd918e53bba6bf6d","user":{"login":"plated","id":4378191,"avatar_url":"https://avatars.githubusercontent.com/u/4378191?v=3","gravatar_id":"","url":"https://api.github.com/users/plated","html_url":"https://github.com/plated","followers_url":"https://api.github.com/users/plated/followers","following_url":"https://api.github.com/users/plated/following{/other_user}","gists_url":"https://api.github.com/users/plated/gists{/gist_id}","starred_url":"https://api.github.com/users/plated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plated/subscriptions","organizations_url":"https://api.github.com/users/plated/orgs","repos_url":"https://api.github.com/users/plated/repos","events_url":"https://api.github.com/users/plated/events{/privacy}","received_events_url":"https://api.github.com/users/plated/received_events","type":"Organization","site_admin":false},"repo":{"id":52479361,"name":"vantiv-ruby","full_name":"plated/vantiv-ruby","owner":{"login":"plated","id":4378191,"avatar_url":"https://avatars.githubusercontent.com/u/4378191?v=3","gravatar_id":"","url":"https://api.github.com/users/plated","html_url":"https://github.com/plated","followers_url":"https://api.github.com/users/plated/followers","following_url":"https://api.github.com/users/plated/following{/other_user}","gists_url":"https://api.github.com/users/plated/gists{/gist_id}","starred_url":"https://api.github.com/users/plated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plated/subscriptions","organizations_url":"https://api.github.com/users/plated/orgs","repos_url":"https://api.github.com/users/plated/repos","events_url":"https://api.github.com/users/plated/events{/privacy}","received_events_url":"https://api.github.com/users/plated/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plated/vantiv-ruby","description":"A simple ruby client to use Vantiv's DevHub API","fork":false,"url":"https://api.github.com/repos/plated/vantiv-ruby","forks_url":"https://api.github.com/repos/plated/vantiv-ruby/forks","keys_url":"https://api.github.com/repos/plated/vantiv-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plated/vantiv-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plated/vantiv-ruby/teams","hooks_url":"https://api.github.com/repos/plated/vantiv-ruby/hooks","issue_events_url":"https://api.github.com/repos/plated/vantiv-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/plated/vantiv-ruby/events","assignees_url":"https://api.github.com/repos/plated/vantiv-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/plated/vantiv-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/plated/vantiv-ruby/tags","blobs_url":"https://api.github.com/repos/plated/vantiv-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plated/vantiv-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plated/vantiv-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/plated/vantiv-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plated/vantiv-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/plated/vantiv-ruby/languages","stargazers_url":"https://api.github.com/repos/plated/vantiv-ruby/stargazers","contributors_url":"https://api.github.com/repos/plated/vantiv-ruby/contributors","subscribers_url":"https://api.github.com/repos/plated/vantiv-ruby/subscribers","subscription_url":"https://api.github.com/repos/plated/vantiv-ruby/subscription","commits_url":"https://api.github.com/repos/plated/vantiv-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/plated/vantiv-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/plated/vantiv-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/plated/vantiv-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/plated/vantiv-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/plated/vantiv-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plated/vantiv-ruby/merges","archive_url":"https://api.github.com/repos/plated/vantiv-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plated/vantiv-ruby/downloads","issues_url":"https://api.github.com/repos/plated/vantiv-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/plated/vantiv-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/plated/vantiv-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/plated/vantiv-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plated/vantiv-ruby/labels{/name}","releases_url":"https://api.github.com/repos/plated/vantiv-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/plated/vantiv-ruby/deployments","created_at":"2016-02-24T22:34:04Z","updated_at":"2016-05-04T20:23:58Z","pushed_at":"2016-08-16T16:54:55Z","git_url":"git://github.com/plated/vantiv-ruby.git","ssh_url":"git@github.com:plated/vantiv-ruby.git","clone_url":"https://github.com/plated/vantiv-ruby.git","svn_url":"https://github.com/plated/vantiv-ruby","homepage":"","size":282,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plated/vantiv-ruby/pulls/60"},"html":{"href":"https://github.com/plated/vantiv-ruby/pull/60"},"issue":{"href":"https://api.github.com/repos/plated/vantiv-ruby/issues/60"},"comments":{"href":"https://api.github.com/repos/plated/vantiv-ruby/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/plated/vantiv-ruby/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/plated/vantiv-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plated/vantiv-ruby/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/plated/vantiv-ruby/statuses/6abaae67da3002dbfcd2eefe37da9506c37daeed"}}}}
{"actor":{"display_login":"ryanong"}}