Class: Twilio::REST::Autopilot

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/autopilot.rb,
lib/twilio-ruby/rest/autopilot/v1.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb,
lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb,
lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Autopilot

Initialize the Autopilot Domain


14
15
16
17
18
19
20
21
22
23
# File 'lib/twilio-ruby/rest/autopilot.rb', line 14

def initialize(twilio)
  super

  @base_url = 'https://autopilot.twilio.com'
  @host = 'autopilot.twilio.com'
  @port = 443

  # Versions
  @v1 = nil
end

Instance Method Details

#assistants(sid = :unset) ⇒ Twilio::REST::Autopilot::V1::AssistantInstance, Twilio::REST::Autopilot::V1::AssistantList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Assistant resource.

Returns:


36
37
38
# File 'lib/twilio-ruby/rest/autopilot.rb', line 36

def assistants(sid=:unset)
  self.v1.assistants(sid)
end

#restore_assistantTwilio::REST::Autopilot::V1::RestoreAssistantInstance


42
43
44
# File 'lib/twilio-ruby/rest/autopilot.rb', line 42

def restore_assistant
  self.v1.restore_assistant()
end

#to_sObject

Provide a user friendly representation


48
49
50
# File 'lib/twilio-ruby/rest/autopilot.rb', line 48

def to_s
  '#<Twilio::REST::Autopilot>'
end

#v1Object

Version v1 of autopilot


27
28
29
# File 'lib/twilio-ruby/rest/autopilot.rb', line 27

def v1
  @v1 ||= V1.new self
end