class Twilio::REST::Proxy

Public Class Methods

new(twilio) click to toggle source

Initialize the Proxy Domain

Calls superclass method Twilio::REST::Domain::new
   # File lib/twilio-ruby/rest/proxy.rb
14 def initialize(twilio)
15   super
16 
17   @base_url = 'https://proxy.twilio.com'
18   @host = 'proxy.twilio.com'
19   @port = 443
20 
21   # Versions
22   @v1 = nil
23 end

Public Instance Methods

services(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the Service

resource.

@return [Twilio::REST::Proxy::V1::ServiceInstance] if sid was passed. @return [Twilio::REST::Proxy::V1::ServiceList]

   # File lib/twilio-ruby/rest/proxy.rb
36 def services(sid=:unset)
37   self.v1.services(sid)
38 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/proxy.rb
42 def to_s
43   '#<Twilio::REST::Proxy>'
44 end
v1() click to toggle source

Version v1 of proxy

   # File lib/twilio-ruby/rest/proxy.rb
27 def v1
28   @v1 ||= V1.new self
29 end