class Komoju::Customers
Public Class Methods
new(client)
click to toggle source
# File lib/komoju/client.rb, line 253 def initialize(client) @client = client end
Public Instance Methods
create(body = {})
click to toggle source
Create a customer
@param body: the object to pass as the request payload
# File lib/komoju/client.rb, line 274 def create(body = {}) @client.customers.create(body) end
destroy(customers_id)
click to toggle source
Destroy a customer
@param customers_id: A unique identifier for the customer.
# File lib/komoju/client.rb, line 289 def destroy(customers_id) @client.customers.destroy(customers_id) end
list(body = {})
click to toggle source
List customers
@param body: the object to pass as the request payload
# File lib/komoju/client.rb, line 260 def list(body = {}) @client.customers.list(body) end
show(customers_id)
click to toggle source
Show a customer
@param customers_id: A unique identifier for the customer.
# File lib/komoju/client.rb, line 267 def show(customers_id) @client.customers.show(customers_id) end
update(customers_id, body = {})
click to toggle source
Update customers
@param customers_id: A unique identifier for the customer. @param body: the object to pass as the request payload
# File lib/komoju/client.rb, line 282 def update(customers_id, body = {}) @client.customers.update(customers_id, body) end