Class: TropoRest::Client

Inherits:
Object
  • Object
show all
Includes:
Address, Application, Exchange, Session, Signal, Connection, Request
Defined in:
lib/tropo_rest/client.rb,
lib/tropo_rest/client/signal.rb,
lib/tropo_rest/client/address.rb,
lib/tropo_rest/client/session.rb,
lib/tropo_rest/client/exchange.rb,
lib/tropo_rest/client/application.rb

Defined Under Namespace

Modules: Address, Application, Exchange, Session, Signal

Constant Summary

Constants included from Signal

Signal::PLURAL_PATH

Constants included from Session

Session::PLURAL_PATH

Constants included from Address

Address::PLURAL_PATH, Address::RESOURCE, Address::SINGULAR_PATH

Constants included from Exchange

Exchange::PLURAL_PATH, Exchange::RESOURCE

Constants included from Application

Application::PLURAL_PATH, Application::RESOURCE, Application::SINGULAR_PATH

Instance Method Summary collapse

Methods included from Signal

#create_signal

Methods included from Session

#create_session

Methods included from Address

#address, #addresses, #create_address, #delete_address

Methods included from Exchange

#exchanges

Methods included from Application

#application, #applications, #create_application, #delete_application, #update_application

Methods included from Request

#delete, #get, #post, #put

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



20
21
22
23
24
25
# File 'lib/tropo_rest/client.rb', line 20

def initialize(options={})
  options = TropoRest.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end