class Twilio::REST::Autopilot

Public Class Methods

new(twilio) click to toggle source

Initialize the Autopilot Domain

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

Public Instance Methods

assistants(sid=:unset) click to toggle source

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

resource.

@return [Twilio::REST::Autopilot::V1::AssistantInstance] if sid was passed. @return [Twilio::REST::Autopilot::V1::AssistantList]

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

@return [Twilio::REST::Autopilot::V1::RestoreAssistantInstance]

   # File lib/twilio-ruby/rest/autopilot.rb
42 def restore_assistant
43   self.v1.restore_assistant()
44 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/autopilot.rb
48 def to_s
49   '#<Twilio::REST::Autopilot>'
50 end
v1() click to toggle source

Version v1 of autopilot

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