class Twilio::REST::Studio::V1::FlowContext::EngagementContext::StepContext::StepContextPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the StepContextPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [StepContextPage] StepContextPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb 45 def initialize(version, response, solution) 46 super(version, response) 47 48 # Path Solution 49 @solution = solution 50 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of StepContextInstance
@param [Hash] payload Payload response from the API @return [StepContextInstance] StepContextInstance
# File lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb 56 def get_instance(payload) 57 StepContextInstance.new( 58 @version, 59 payload, 60 flow_sid: @solution[:flow_sid], 61 engagement_sid: @solution[:engagement_sid], 62 step_sid: @solution[:step_sid], 63 ) 64 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb 68 def to_s 69 '<Twilio.Studio.V1.StepContextPage>' 70 end