Class: WebPay::Account
- Inherits:
-
ApiResource
- Object
- ApiResource
- WebPay::Account
- Defined in:
- lib/webpay/account.rb
Instance Method Summary collapse
-
#delete_data(params = {}) ⇒ DeletedResponse
Delete all test data of this account.
-
#retrieve(params = {}) ⇒ AccountResponse
Retrieve information of the current user.
Methods inherited from ApiResource
Constructor Details
This class inherits a constructor from WebPay::ApiResource
Instance Method Details
#delete_data(params = {}) ⇒ DeletedResponse
Delete all test data of this account.
16 17 18 19 20 |
# File 'lib/webpay/account.rb', line 16 def delete_data(params = {}) req = WebPay::EmptyRequest.create(params) raw_response = @client._request(:delete, 'account' + '/' + 'data', req) WebPay::DeletedResponse.new(raw_response) end |
#retrieve(params = {}) ⇒ AccountResponse
Retrieve information of the current user.
6 7 8 9 10 |
# File 'lib/webpay/account.rb', line 6 def retrieve(params = {}) req = WebPay::EmptyRequest.create(params) raw_response = @client._request(:get, 'account', req) WebPay::AccountResponse.new(raw_response) end |