Class: Paid::Customer
- Inherits:
-
APIResource
- Object
- PaidObject
- APIResource
- Paid::Customer
- Defined in:
- lib/paid/customer.rb
Instance Attribute Summary
Attributes inherited from PaidObject
Instance Method Summary collapse
Methods included from APIOperations::List
Methods included from APIOperations::Update
#save, #serialize_metadata, #serialize_params
Methods included from APIOperations::Delete
Methods included from APIOperations::Create
Methods inherited from APIResource
class_name, #refresh, retrieve, url, #url
Methods inherited from PaidObject
#[], #[]=, #_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 Paid::PaidObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Paid::PaidObject
Instance Method Details
#invoices ⇒ Object
8 9 10 |
# File 'lib/paid/customer.rb', line 8 def invoices Invoice.all({ :customer => id }, @api_key) end |
#transactions ⇒ Object
12 13 14 |
# File 'lib/paid/customer.rb', line 12 def transactions Transaction.all({ :customer => id }, @api_key) end |