Class: SlidePay::Customer
- Inherits:
-
ApiResource
- Object
- Hash
- ApiResource
- SlidePay::Customer
- Defined in:
- lib/slidepay/resources/customer.rb
Instance Attribute Summary
Attributes inherited from ApiResource
#api_key, #endpoint, #id_attribute, #token, #url_root
Instance Method Summary collapse
-
#initialize(values_hash = {}) ⇒ Customer
constructor
A new instance of Customer.
Methods inherited from ApiResource
api_resource_array_from_response, #destroy, find, find_between, find_greater_than, find_less_than, find_where, #id, #is_new?, #populate_from_response, #retrieve, retrieve, #save, #url
Constructor Details
#initialize(values_hash = {}) ⇒ Customer
Returns a new instance of Customer.
6 7 8 9 10 11 |
# File 'lib/slidepay/resources/customer.rb', line 6 def initialize(values_hash={}) @url_root = "customer" @id_attribute = "customer_id" super(values_hash) end |