Module: PactasItero::Api::Customers
- Included in:
- PactasItero::Api
- Defined in:
- lib/pactas_itero/api/customers.rb
Instance Method Summary collapse
- #create_customer(options = {}) ⇒ Object
- #customer(customer_id, options = {}) ⇒ Object
- #customers(options = {}) ⇒ Object
- #update_customer(customer_id, options = {}) ⇒ Object
Instance Method Details
#create_customer(options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/pactas_itero/api/customers.rb', line 6 def create_customer( = {}) = .camelize_keys post "api/v1/customers", end |
#customer(customer_id, options = {}) ⇒ Object
16 17 18 19 |
# File 'lib/pactas_itero/api/customers.rb', line 16 def customer(customer_id, = {}) = .camelize_keys get "api/v1/customers/#{customer_id}", end |
#customers(options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/pactas_itero/api/customers.rb', line 11 def customers( = {}) = .camelize_keys get "api/v1/customers", end |
#update_customer(customer_id, options = {}) ⇒ Object
21 22 23 24 |
# File 'lib/pactas_itero/api/customers.rb', line 21 def update_customer(customer_id, = {}) = .camelize_keys patch "api/v1/customers/#{customer_id}", end |