Method: Invoicexpress::Client::Clients#client

Defined in:
lib/invoicexpress/client/clients.rb

#client(client_id, options = {}) ⇒ Invoicexpress::Models::Client

Returns a specific client

Parameters:

  • client_id (String)

    The client’s ID

Returns:

Raises:

  • Invoicexpress::Unauthorized When the client is unauthorized

  • Invoicexpress::UnprocessableEntity When there are errors on the submission

  • Invoicexpress::NotFound When the client ID is not found



66
67
68
69
70
# File 'lib/invoicexpress/client/clients.rb', line 66

def client(client_id, options={})
  params = { :klass => Invoicexpress::Models::Client }

  get("clients/#{client_id.to_s}.xml", params.merge(options))
end