Module: PactasItero::Api::Customers

Included in:
PactasItero::Api
Defined in:
lib/pactas_itero/api/customers.rb

Instance Method Summary collapse

Instance Method Details

#create_customer(options = {}) ⇒ Object



6
7
8
9
# File 'lib/pactas_itero/api/customers.rb', line 6

def create_customer(options = {})
  options = options.camelize_keys
  post "api/v1/customers", options
end

#customer(customer_id, options = {}) ⇒ Object



16
17
18
19
# File 'lib/pactas_itero/api/customers.rb', line 16

def customer(customer_id, options = {})
  options = options.camelize_keys
  get "api/v1/customers/#{customer_id}", options
end

#customers(options = {}) ⇒ Object



11
12
13
14
# File 'lib/pactas_itero/api/customers.rb', line 11

def customers(options = {})
  options = options.camelize_keys
  get "api/v1/customers", options
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, options = {})
  options = options.camelize_keys
  patch "api/v1/customers/#{customer_id}", options
end