class Twilio::REST::Studio::V2::FlowContext::ExecutionContext::ExecutionStepContext
Public Class Methods
new(version, flow_sid, execution_sid, sid)
click to toggle source
Initialize the ExecutionStepContext
@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] sid The SID of the ExecutionStep resource to fetch. @return [ExecutionStepContext] ExecutionStepContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb 160 def initialize(version, flow_sid, execution_sid, sid) 161 super(version) 162 163 # Path Solution 164 @solution = {flow_sid: flow_sid, execution_sid: execution_sid, sid: sid, } 165 @uri = "/Flows/#{@solution[:flow_sid]}/Executions/#{@solution[:execution_sid]}/Steps/#{@solution[:sid]}" 166 167 # Dependents 168 @step_context = nil 169 end
Public Instance Methods
fetch()
click to toggle source
Fetch the ExecutionStepInstance
@return [ExecutionStepInstance] Fetched ExecutionStepInstance
# File lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb 174 def fetch 175 payload = @version.fetch('GET', @uri) 176 177 ExecutionStepInstance.new( 178 @version, 179 payload, 180 flow_sid: @solution[:flow_sid], 181 execution_sid: @solution[:execution_sid], 182 sid: @solution[:sid], 183 ) 184 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb 208 def inspect 209 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 210 "#<Twilio.Studio.V2.ExecutionStepContext #{context}>" 211 end
step_context()
click to toggle source
Access the step_context
@return [ExecutionStepContextList] @return [ExecutionStepContextContext]
# File lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb 190 def step_context 191 ExecutionStepContextContext.new( 192 @version, 193 @solution[:flow_sid], 194 @solution[:execution_sid], 195 @solution[:sid], 196 ) 197 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb 201 def to_s 202 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 203 "#<Twilio.Studio.V2.ExecutionStepContext #{context}>" 204 end