Class: Paid::Customer

Inherits:
APIResource show all
Includes:
APIOperations::Create, APIOperations::Delete, APIOperations::List, APIOperations::Update
Defined in:
lib/paid/customer.rb

Instance Attribute Summary

Attributes inherited from PaidObject

#api_key

Instance Method Summary collapse

Methods included from APIOperations::List

included

Methods included from APIOperations::Update

#save, #serialize_metadata, #serialize_params

Methods included from APIOperations::Delete

#delete

Methods included from APIOperations::Create

included

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

#invoicesObject



8
9
10
# File 'lib/paid/customer.rb', line 8

def invoices
  Invoice.all({ :customer => id }, @api_key)
end

#transactionsObject



12
13
14
# File 'lib/paid/customer.rb', line 12

def transactions
  Transaction.all({ :customer => id }, @api_key)
end