Class: TicketEvolution::Clients

Inherits:
Endpoint show all
Includes:
Modules::Create, Modules::List, Modules::Show, Modules::Update
Defined in:
lib/ticket_evolution/clients.rb,
lib/ticket_evolution/clients/addresses.rb,
lib/ticket_evolution/clients/credit_cards.rb,
lib/ticket_evolution/clients/phone_numbers.rb,
lib/ticket_evolution/clients/email_addresses.rb

Defined Under Namespace

Classes: Addresses, CreditCards, EmailAddresses, PhoneNumbers

Constant Summary

Constants included from Endpoint::RequestHandler

Endpoint::RequestHandler::CODES

Instance Method Summary collapse

Methods included from Modules::Update

#build_for_update, included, #update

Methods included from Modules::Show

#build_for_show, #show

Methods included from Modules::List

#list, #raw

Methods included from Modules::Create

#build_for_create, #create

Methods inherited from Endpoint

#base_path, #connection, #endpoint_name, #has_connection?, #id, #initialize, #method_missing

Methods included from SingularClass

#singular_class

Methods included from Endpoint::RequestHandler

#build_request, #collection_handler, #naturalize_response, #raw_handler, #request, #upload_history_handler

Methods inherited from Base

#method_missing

Constructor Details

This class inherits a constructor from TicketEvolution::Endpoint

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class TicketEvolution::Endpoint

Instance Method Details

#create_from_office(params = nil) ⇒ Object



8
9
10
# File 'lib/ticket_evolution/clients.rb', line 8

def create_from_office(params = nil)
  request(:POST, "/create_from_office/#{params[:office_id]}", nil, &method(:build_for_show))
end