class Twilio::REST::Autopilot::V1
Public Class Methods
new(domain)
click to toggle source
Initialize the V1
version of Autopilot
Calls superclass method
Twilio::REST::Version::new
# File lib/twilio-ruby/rest/autopilot/v1.rb 15 def initialize(domain) 16 super 17 @version = 'v1' 18 @assistants = nil 19 @restore_assistant = nil 20 end
Public Instance Methods
assistants(sid=:unset)
click to toggle source
@param [String] sid The Twilio-provided string that uniquely identifies the
Assistant resource to fetch.
@return [Twilio::REST::Autopilot::V1::AssistantContext] if sid was passed. @return [Twilio::REST::Autopilot::V1::AssistantList]
# File lib/twilio-ruby/rest/autopilot/v1.rb 27 def assistants(sid=:unset) 28 if sid.nil? 29 raise ArgumentError, 'sid cannot be nil' 30 end 31 if sid == :unset 32 @assistants ||= AssistantList.new self 33 else 34 AssistantContext.new(self, sid) 35 end 36 end
restore_assistant()
click to toggle source
@return [Twilio::REST::Autopilot::V1::RestoreAssistantContext]
# File lib/twilio-ruby/rest/autopilot/v1.rb 40 def restore_assistant 41 @restore_assistant ||= RestoreAssistantList.new self 42 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/autopilot/v1.rb 46 def to_s 47 '<Twilio::REST::Autopilot::V1>' 48 end