Class: Twilio::REST::Preview::Understand::AssistantContext::TaskContext::TaskStatisticsPage
- Inherits:
-
Twilio::REST::Page
- Object
- Twilio::REST::Page
- Twilio::REST::Preview::Understand::AssistantContext::TaskContext::TaskStatisticsPage
- Defined in:
- lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb
Constant Summary
Constants inherited from Twilio::REST::Page
Instance Method Summary collapse
-
#get_instance(payload) ⇒ TaskStatisticsInstance
Build an instance of TaskStatisticsInstance.
-
#initialize(version, response, solution) ⇒ TaskStatisticsPage
constructor
Initialize the TaskStatisticsPage.
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from Twilio::REST::Page
#each, #load_page, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response
Constructor Details
#initialize(version, response, solution) ⇒ TaskStatisticsPage
Initialize the TaskStatisticsPage
100 101 102 103 104 105 |
# File 'lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb', line 100 def initialize(version, response, solution) super(version, response) # Path Solution @solution = solution end |
Instance Method Details
#get_instance(payload) ⇒ TaskStatisticsInstance
Build an instance of TaskStatisticsInstance
111 112 113 |
# File 'lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb', line 111 def get_instance(payload) TaskStatisticsInstance.new(@version, payload, assistant_sid: @solution[:assistant_sid], task_sid: @solution[:task_sid]) end |
#to_s ⇒ Object
Provide a user friendly representation
117 118 119 |
# File 'lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb', line 117 def to_s '<Twilio.Preview.Understand.TaskStatisticsPage>' end |