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.
1887 1888 1889 |
# File 'lib/platform-api/client.rb', line 1887 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a payment on an existing account
1894 1895 1896 |
# File 'lib/platform-api/client.rb', line 1894 def create(body = {}) @client.payment.create(body) end |