Class: Tango::Api::Resources::Customers
- Defined in:
- lib/tango/api/resources/customers.rb
Overview
Client for Customers endpoints.
Instance Method Summary collapse
-
#accounts(customer_identifier, params = {}) ⇒ Object
GET /customers/customerIdentifier/accounts.
-
#create(body) ⇒ Object
POST /customers.
-
#get(customer_identifier) ⇒ Object
GET /customers/customerIdentifier.
-
#list(params = {}) ⇒ Object
GET /customers.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Tango::Api::Resources::Base
Instance Method Details
#accounts(customer_identifier, params = {}) ⇒ Object
GET /customers/customerIdentifier/accounts
24 25 26 |
# File 'lib/tango/api/resources/customers.rb', line 24 def accounts(customer_identifier, params = {}) get_json("customers/#{customer_identifier}/accounts", params) end |
#create(body) ⇒ Object
POST /customers
19 20 21 |
# File 'lib/tango/api/resources/customers.rb', line 19 def create(body) post_json("customers", body) end |
#get(customer_identifier) ⇒ Object
GET /customers/customerIdentifier
14 15 16 |
# File 'lib/tango/api/resources/customers.rb', line 14 def get(customer_identifier) get_json("customers/#{customer_identifier}") end |
#list(params = {}) ⇒ Object
GET /customers
9 10 11 |
# File 'lib/tango/api/resources/customers.rb', line 9 def list(params = {}) get_json("customers", params) end |