Class: Komoju::Customers

Inherits:
Object
  • Object
show all
Defined in:
lib/komoju/client.rb

Overview

Customers

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Customers

Returns a new instance of Customers.



253
254
255
# File 'lib/komoju/client.rb', line 253

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object

Create a customer

Parameters:

  • body:

    the object to pass as the request payload



274
275
276
# File 'lib/komoju/client.rb', line 274

def create(body = {})
  @client.customers.create(body)
end

#destroy(customers_id) ⇒ Object

Destroy a customer

Parameters:

  • customers_id:

    A unique identifier for the customer.



289
290
291
# File 'lib/komoju/client.rb', line 289

def destroy(customers_id)
  @client.customers.destroy(customers_id)
end

#list(body = {}) ⇒ Object

List customers

Parameters:

  • body:

    the object to pass as the request payload



260
261
262
# File 'lib/komoju/client.rb', line 260

def list(body = {})
  @client.customers.list(body)
end

#show(customers_id) ⇒ Object

Show a customer

Parameters:

  • customers_id:

    A unique identifier for the customer.



267
268
269
# File 'lib/komoju/client.rb', line 267

def show(customers_id)
  @client.customers.show(customers_id)
end

#update(customers_id, body = {}) ⇒ Object

Update customers

Parameters:

  • customers_id:

    A unique identifier for the customer.

  • body:

    the object to pass as the request payload



282
283
284
# File 'lib/komoju/client.rb', line 282

def update(customers_id, body = {})
  @client.customers.update(customers_id, body)
end