Class: SnapDeploy::Provider::Heroku::API::Payment

Inherits:
Object
  • Object
show all
Defined in:
lib/snap_deploy/provider/heroku/api.rb

Overview

A payment represents money collected for an account

Instance Method Summary collapse

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

Parameters:

  • body:

    the object to pass as the request payload



1303
1304
1305
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1303

def create(body)
  @client.payment.create(body)
end