Class: SnapDeploy::Provider::Heroku::API::PaymentMethod
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::PaymentMethod
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
The on file payment method for an account
Instance Method Summary collapse
-
#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.
1310 1311 1312 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1310 def initialize(client) @client = client end |
Instance Method Details
#update(body) ⇒ Object
Update an existing payment method for an account.
1317 1318 1319 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1317 def update(body) @client.payment_method.update(body) end |