Class: Aptible::BillForward::PaymentMethod
- Inherits:
-
Resource
- Object
- Sawyer::Resource
- Resource
- Aptible::BillForward::PaymentMethod
show all
- Defined in:
- lib/aptible/billforward/resource/payment_method.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Resource
all, by_subscription_id, #client, client, collection_path, create, find, #href, #invoice, #subscription, #update
Class Method Details
.basename ⇒ Object
4
5
6
|
# File 'lib/aptible/billforward/resource/payment_method.rb', line 4
def self.basename
'payment-methods'
end
|
.by_account_id(account_id, params = {}) ⇒ Object
12
13
14
|
# File 'lib/aptible/billforward/resource/payment_method.rb', line 12
def self.by_account_id(account_id, params = {})
client.get "#{collection_path}/account/#{account_id}", params
end
|
Instance Method Details
#serialize ⇒ Object
8
9
10
|
# File 'lib/aptible/billforward/resource/payment_method.rb', line 8
def serialize
to_attrs
end
|