Class: PlatformAPI::PaymentMethod
- Inherits:
-
Object
- Object
- PlatformAPI::PaymentMethod
- Defined in:
- lib/platform-api/client.rb
Overview
The on file payment method for an account
Instance Method Summary collapse
-
#get ⇒ Object
Get the current payment method for an account.
-
#initialize(client) ⇒ PaymentMethod
constructor
A new instance of PaymentMethod.
-
#update(body) ⇒ Object
Update an existing payment method for an account.
Constructor Details
#initialize(client) ⇒ PaymentMethod
Returns a new instance of PaymentMethod.
1724 1725 1726 |
# File 'lib/platform-api/client.rb', line 1724 def initialize(client) @client = client end |
Instance Method Details
#get ⇒ Object
Get the current payment method for an account.
1736 1737 1738 |
# File 'lib/platform-api/client.rb', line 1736 def get() @client.payment_method.get() end |
#update(body) ⇒ Object
Update an existing payment method for an account.
1731 1732 1733 |
# File 'lib/platform-api/client.rb', line 1731 def update(body) @client.payment_method.update(body) end |