Class: Twilio::REST::Autopilot::V1
- Defined in:
- 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: AssistantContext, AssistantInstance, AssistantList, AssistantPage, RestoreAssistantInstance, RestoreAssistantList, RestoreAssistantPage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
- #assistants(sid = :unset) ⇒ Twilio::REST::Autopilot::V1::AssistantContext, Twilio::REST::Autopilot::V1::AssistantList
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of Autopilot.
- #restore_assistant ⇒ Twilio::REST::Autopilot::V1::RestoreAssistantList
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V1
Initialize the V1 version of Autopilot
21 22 23 24 25 26 |
# File 'lib/twilio-ruby/rest/autopilot/v1.rb', line 21 def initialize(domain) super @version = 'v1' @assistants = nil @restore_assistant = nil end |
Instance Method Details
#assistants(sid = :unset) ⇒ Twilio::REST::Autopilot::V1::AssistantContext, Twilio::REST::Autopilot::V1::AssistantList
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/twilio-ruby/rest/autopilot/v1.rb', line 32 def assistants(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' end if sid == :unset @assistants ||= AssistantList.new self else AssistantContext.new(self, sid) end end |
#restore_assistant ⇒ Twilio::REST::Autopilot::V1::RestoreAssistantList
44 45 46 |
# File 'lib/twilio-ruby/rest/autopilot/v1.rb', line 44 def restore_assistant @restore_assistant ||= RestoreAssistantList.new self end |
#to_s ⇒ Object
Provide a user friendly representation
49 50 51 |
# File 'lib/twilio-ruby/rest/autopilot/v1.rb', line 49 def to_s '<Twilio::REST::Autopilot::V1>'; end |