class Twilio::REST::Studio::V1::FlowContext::EngagementContext::StepContext::StepContextContext
Public Class Methods
new(version, flow_sid, engagement_sid, step_sid)
click to toggle source
Initialize the StepContextContext
@param [Version] version Version
that contains the resource @param [String] flow_sid The SID of the Flow with the Step to fetch. @param [String] engagement_sid The SID of the Engagement with the Step to fetch. @param [String] step_sid The SID of the Step to fetch @return [StepContextContext] StepContextContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb 81 def initialize(version, flow_sid, engagement_sid, step_sid) 82 super(version) 83 84 # Path Solution 85 @solution = {flow_sid: flow_sid, engagement_sid: engagement_sid, step_sid: step_sid, } 86 @uri = "/Flows/#{@solution[:flow_sid]}/Engagements/#{@solution[:engagement_sid]}/Steps/#{@solution[:step_sid]}/Context" 87 end
Public Instance Methods
fetch()
click to toggle source
Fetch the StepContextInstance
@return [StepContextInstance] Fetched StepContextInstance
# File lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb 92 def fetch 93 payload = @version.fetch('GET', @uri) 94 95 StepContextInstance.new( 96 @version, 97 payload, 98 flow_sid: @solution[:flow_sid], 99 engagement_sid: @solution[:engagement_sid], 100 step_sid: @solution[:step_sid], 101 ) 102 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb 113 def inspect 114 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 115 "#<Twilio.Studio.V1.StepContextContext #{context}>" 116 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 106 def to_s 107 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 108 "#<Twilio.Studio.V1.StepContextContext #{context}>" 109 end