Class: Twilio::TwilioObject
- Inherits:
-
Object
- Object
- Twilio::TwilioObject
- Defined in:
- lib/twilio/twilio_object.rb
Overview
:nodoc: all
Direct Known Subclasses
Account, AvailablePhoneNumbers, Call, Conference, IncomingPhoneNumber, Notification, OutgoingCallerId, Recording, Sms
Class Method Summary collapse
Instance Method Summary collapse
- #connected? ⇒ Boolean
-
#initialize ⇒ TwilioObject
constructor
A new instance of TwilioObject.
Constructor Details
#initialize ⇒ TwilioObject
Returns a new instance of TwilioObject.
3 4 |
# File 'lib/twilio/twilio_object.rb', line 3 def initialize end |
Class Method Details
.method_missing(method_id, *args) ⇒ Object
:nodoc:
7 8 9 10 11 12 |
# File 'lib/twilio/twilio_object.rb', line 7 def method_missing(method_id, *args) #:nodoc: o = self.new o.send(method_id, *args) rescue HTTParty::UnsupportedURIScheme raise "You must set Twilio.connect before calling #{self.inspect}##{method_id}" end |
Instance Method Details
#connected? ⇒ Boolean
15 16 17 |
# File 'lib/twilio/twilio_object.rb', line 15 def connected? self.class.base_uri end |