Module: TwilioResource
- Defined in:
- lib/twilio_resource.rb,
lib/twilio_resource/exceptions.rb
Defined Under Namespace
Classes: Account, Base, Call, Exception, IncomingPhoneNumber, LocalIncomingPhoneNumber, NoPhoneNumbersFoundException, OutgoingCallerId, TollFreeIncomingPhoneNumber
Class Attribute Summary collapse
-
.logger ⇒ Object
Returns the value of attribute logger.
Class Method Summary collapse
-
.setup(sid, token, logger = nil) ⇒ Object
Sets up the credentials the ActiveResources will use to access the twilio API.
Class Attribute Details
.logger ⇒ Object
Returns the value of attribute logger.
18 19 20 |
# File 'lib/twilio_resource.rb', line 18 def logger @logger end |
Class Method Details
.setup(sid, token, logger = nil) ⇒ Object
Sets up the credentials the ActiveResources will use to access the twilio API. Optionally takes a logger
, which defaults to STDOUT
.
23 24 25 26 27 |
# File 'lib/twilio_resource.rb', line 23 def self.setup(sid, token, logger = nil) @logger = logger || Logger.new(STDOUT) TwilioResource::Base.sid = sid TwilioResource::Base.token = token end |