Class: Twilio::REST::Proxy
- Defined in:
- lib/twilio-ruby/rest/proxy.rb,
lib/twilio-ruby/rest/proxy/v1.rb,
lib/twilio-ruby/rest/proxy/v1/service.rb,
lib/twilio-ruby/rest/proxy/v1/service/session.rb,
lib/twilio-ruby/rest/proxy/v1/service/short_code.rb,
lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb,
lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb,
lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb,
lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb
Defined Under Namespace
Classes: V1
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
-
#initialize(twilio) ⇒ Proxy
constructor
Initialize the Proxy Domain.
- #services(sid = :unset) ⇒ Twilio::REST::Proxy::V1::ServiceInstance, Twilio::REST::Proxy::V1::ServiceList
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#v1 ⇒ Object
Version v1 of proxy.
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ Proxy
Initialize the Proxy Domain
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/twilio-ruby/rest/proxy.rb', line 14 def initialize(twilio) super @base_url = 'https://proxy.twilio.com' @host = 'proxy.twilio.com' @port = 443 # Versions @v1 = nil end |
Instance Method Details
#services(sid = :unset) ⇒ Twilio::REST::Proxy::V1::ServiceInstance, Twilio::REST::Proxy::V1::ServiceList
36 37 38 |
# File 'lib/twilio-ruby/rest/proxy.rb', line 36 def services(sid=:unset) self.v1.services(sid) end |
#to_s ⇒ Object
Provide a user friendly representation
42 43 44 |
# File 'lib/twilio-ruby/rest/proxy.rb', line 42 def to_s '#<Twilio::REST::Proxy>' end |