class Twilio::REST::Preview::Understand::AssistantContext::TaskContext::SamplePage
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the SamplePage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [SamplePage] SamplePage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb 158 def initialize(version, response, solution) 159 super(version, response) 160 161 # Path Solution 162 @solution = solution 163 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of SampleInstance
@param [Hash] payload Payload response from the API @return [SampleInstance] SampleInstance
# File lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb 169 def get_instance(payload) 170 SampleInstance.new( 171 @version, 172 payload, 173 assistant_sid: @solution[:assistant_sid], 174 task_sid: @solution[:task_sid], 175 ) 176 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb 180 def to_s 181 '<Twilio.Preview.Understand.SamplePage>' 182 end