Module: Knodes::Client::Customers
- Included in:
- Knodes::Client
- Defined in:
- lib/knodes/client/customers.rb
Instance Method Summary collapse
- #customer ⇒ Object
- #customer_connect(options = {}) ⇒ Object
- #customer_disconnect(options = {}) ⇒ Object
Instance Method Details
#customer ⇒ Object
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(={}) response = post("customers/#{options[:customer_id]}/connect", = .merge(creds)) end |
#customer_disconnect(options = {}) ⇒ Object
12 13 14 |
# File 'lib/knodes/client/customers.rb', line 12 def customer_disconnect(={}) response = post("customers/#{options[:customer_id]}/disconnect", = .merge(creds)) end |