Class: SnapDeploy::Provider::Heroku::API::Payment
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::Payment
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
A payment represents money collected for an account
Instance Method Summary collapse
-
#create(body) ⇒ Object
Create a payment on an existing account.
-
#initialize(client) ⇒ Payment
constructor
A new instance of Payment.
Constructor Details
#initialize(client) ⇒ Payment
Returns a new instance of Payment.
1296 1297 1298 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1296 def initialize(client) @client = client end |
Instance Method Details
#create(body) ⇒ Object
Create a payment on an existing account
1303 1304 1305 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1303 def create(body) @client.payment.create(body) end |