Class: Twilio::REST::Autopilot::V1::AssistantContext::TaskContext::TaskActionsPage
- Inherits:
-
Page
- Object
- Page
- Twilio::REST::Autopilot::V1::AssistantContext::TaskContext::TaskActionsPage
- Defined in:
- lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb
Constant Summary
Constants inherited from Page
Instance Method Summary collapse
-
#get_instance(payload) ⇒ TaskActionsInstance
Build an instance of TaskActionsInstance.
-
#initialize(version, response, solution) ⇒ TaskActionsPage
constructor
Initialize the TaskActionsPage.
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from Page
#each, #load_page, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response
Constructor Details
#initialize(version, response, solution) ⇒ TaskActionsPage
Initialize the TaskActionsPage
121 122 123 124 125 126 |
# File 'lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb', line 121 def initialize(version, response, solution) super(version, response) # Path Solution @solution = solution end |
Instance Method Details
#get_instance(payload) ⇒ TaskActionsInstance
Build an instance of TaskActionsInstance
132 133 134 |
# File 'lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb', line 132 def get_instance(payload) TaskActionsInstance.new(@version, payload, assistant_sid: @solution[:assistant_sid], task_sid: @solution[:task_sid]) end |
#to_s ⇒ Object
Provide a user friendly representation
138 139 140 |
# File 'lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb', line 138 def to_s '<Twilio.Autopilot.V1.TaskActionsPage>' end |