Class: Komoju::Customers
- Inherits:
-
Object
- Object
- Komoju::Customers
- Defined in:
- lib/komoju/client.rb
Overview
Customers
Instance Method Summary collapse
-
#create(body = {}) ⇒ Object
Create a customer.
-
#destroy(customers_id) ⇒ Object
Destroy a customer.
-
#initialize(client) ⇒ Customers
constructor
A new instance of Customers.
-
#list(body = {}) ⇒ Object
List customers.
-
#show(customers_id) ⇒ Object
Show a customer.
-
#update(customers_id, body = {}) ⇒ Object
Update customers.
Constructor Details
#initialize(client) ⇒ Customers
Returns a new instance of Customers.
309 310 311 |
# File 'lib/komoju/client.rb', line 309 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a customer
330 331 332 |
# File 'lib/komoju/client.rb', line 330 def create(body = {}) @client.customers.create(body) end |
#destroy(customers_id) ⇒ Object
Destroy a customer
345 346 347 |
# File 'lib/komoju/client.rb', line 345 def destroy(customers_id) @client.customers.destroy(customers_id) end |
#list(body = {}) ⇒ Object
List customers
316 317 318 |
# File 'lib/komoju/client.rb', line 316 def list(body = {}) @client.customers.list(body) end |
#show(customers_id) ⇒ Object
Show a customer
323 324 325 |
# File 'lib/komoju/client.rb', line 323 def show(customers_id) @client.customers.show(customers_id) end |
#update(customers_id, body = {}) ⇒ Object
Update customers
338 339 340 |
# File 'lib/komoju/client.rb', line 338 def update(customers_id, body = {}) @client.customers.update(customers_id, body) end |