Class: PlatformAPI::Payment
- Inherits:
-
Object
- Object
- PlatformAPI::Payment
- Defined in:
- lib/platform-api/client.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.
1813 1814 1815 |
# File 'lib/platform-api/client.rb', line 1813 def initialize(client) @client = client end |
Instance Method Details
#create(body) ⇒ Object
Create a payment on an existing account
1820 1821 1822 |
# File 'lib/platform-api/client.rb', line 1820 def create(body) @client.payment.create(body) end |