Class: Komoju::Customers
- Inherits:
-
Object
- Object
- Komoju::Customers
- Defined in:
- lib/komoju/client.rb
Overview
Subscription 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(collection_options = {}) ⇒ 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.
297 298 299 |
# File 'lib/komoju/client.rb', line 297 def initialize(client) @client = client end |
Instance Method Details
#create(body) ⇒ Object
Create a customer
318 319 320 |
# File 'lib/komoju/client.rb', line 318 def create(body) @client.customers.create(body) end |
#destroy(customers_id) ⇒ Object
Destroy a customer
333 334 335 |
# File 'lib/komoju/client.rb', line 333 def destroy(customers_id) @client.customers.destroy(customers_id) end |
#list(collection_options = {}) ⇒ Object
List customers
304 305 306 |
# File 'lib/komoju/client.rb', line 304 def list( = {}) @client.customers.list() end |
#show(customers_id) ⇒ Object
Show a customer
311 312 313 |
# File 'lib/komoju/client.rb', line 311 def show(customers_id) @client.customers.show(customers_id) end |
#update(customers_id, body) ⇒ Object
Update customers
326 327 328 |
# File 'lib/komoju/client.rb', line 326 def update(customers_id, body) @client.customers.update(customers_id, body) end |