Class: Octobat::Customer
- Inherits:
-
APIResource
- Object
- OctobatObject
- APIResource
- Octobat::Customer
- Extended by:
- APIOperations::List
- Defined in:
- lib/octobat/customer.rb
Instance Attribute Summary
Attributes inherited from OctobatObject
Instance Method Summary collapse
- #credit_notes(params = {}) ⇒ Object
- #invoices(params = {}) ⇒ Object
- #payment_sources(params = {}) ⇒ Object
Methods included from APIOperations::List
Methods included from APIOperations::Delete
Methods included from APIOperations::Update
#save, #serialize_metadata, #serialize_params
Methods included from APIOperations::Create
Methods inherited from APIResource
class_name, #refresh, retrieve, url, #url
Methods inherited from OctobatObject
#[], #[]=, #_dump, _load, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #respond_to?, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from Octobat::OctobatObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Octobat::OctobatObject
Instance Method Details
#credit_notes(params = {}) ⇒ Object
12 13 14 |
# File 'lib/octobat/customer.rb', line 12 def credit_notes(params = {}) CreditNote.all(params.merge({ :customer => id }), @api_key) end |
#invoices(params = {}) ⇒ Object
8 9 10 |
# File 'lib/octobat/customer.rb', line 8 def invoices(params = {}) Invoice.all(params.merge({ :customer => id }), @api_key) end |
#payment_sources(params = {}) ⇒ Object
16 17 18 |
# File 'lib/octobat/customer.rb', line 16 def payment_sources(params = {}) PaymentSource.all(params.merge({ :customer => id }), @api_key) end |