class Twilio::REST::Studio::V1::FlowContext::ExecutionContext::ExecutionStepContext::ExecutionStepContextContext
Public Class Methods
new(version, flow_sid, execution_sid, step_sid)
click to toggle source
Initialize the ExecutionStepContextContext
@param [Version] version Version
that contains the resource @param [String] flow_sid The SID of the Flow with the Step to fetch. @param [String] execution_sid The SID of the Execution resource with the Step to
fetch.
@param [String] step_sid The SID of the Step to fetch. @return [ExecutionStepContextContext] ExecutionStepContextContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb 83 def initialize(version, flow_sid, execution_sid, step_sid) 84 super(version) 85 86 # Path Solution 87 @solution = {flow_sid: flow_sid, execution_sid: execution_sid, step_sid: step_sid, } 88 @uri = "/Flows/#{@solution[:flow_sid]}/Executions/#{@solution[:execution_sid]}/Steps/#{@solution[:step_sid]}/Context" 89 end
Public Instance Methods
fetch()
click to toggle source
Fetch the ExecutionStepContextInstance
@return [ExecutionStepContextInstance] Fetched ExecutionStepContextInstance
# File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb 94 def fetch 95 payload = @version.fetch('GET', @uri) 96 97 ExecutionStepContextInstance.new( 98 @version, 99 payload, 100 flow_sid: @solution[:flow_sid], 101 execution_sid: @solution[:execution_sid], 102 step_sid: @solution[:step_sid], 103 ) 104 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb 115 def inspect 116 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 117 "#<Twilio.Studio.V1.ExecutionStepContextContext #{context}>" 118 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb 108 def to_s 109 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 110 "#<Twilio.Studio.V1.ExecutionStepContextContext #{context}>" 111 end