Module: Knodes::Client::Customers

Included in:
Knodes::Client
Defined in:
lib/knodes/client/customers.rb

Instance Method Summary collapse

Instance Method Details

#customerObject



4
5
6
# File 'lib/knodes/client/customers.rb', line 4

def customer
  response = get("customers", creds)
end

#customer_connect(options = {}) ⇒ Object



8
9
10
# File 'lib/knodes/client/customers.rb', line 8

def customer_connect(options={})
  response = post("customers/#{options[:customer_id]}/connect", options = options.merge(creds))
end

#customer_disconnect(options = {}) ⇒ Object



12
13
14
# File 'lib/knodes/client/customers.rb', line 12

def customer_disconnect(options={})
  response = post("customers/#{options[:customer_id]}/disconnect", options = options.merge(creds))
end