Class: Twilio::REST::Studio::V2::FlowContext::ExecutionContext::ExecutionStepContext
- Inherits:
- 
      InstanceContext
      
        - Object
- InstanceContext
- Twilio::REST::Studio::V2::FlowContext::ExecutionContext::ExecutionStepContext
 
- Defined in:
- lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb,
 lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb
Defined Under Namespace
Classes: ExecutionStepContextContext, ExecutionStepContextInstance, ExecutionStepContextList, ExecutionStepContextPage
Instance Method Summary collapse
- 
  
    
      #fetch  ⇒ ExecutionStepInstance 
    
    
  
  
  
  
  
  
  
  
  
    Fetch the ExecutionStepInstance. 
- 
  
    
      #initialize(version, flow_sid, execution_sid, sid)  ⇒ ExecutionStepContext 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Initialize the ExecutionStepContext. 
- 
  
    
      #inspect  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Provide a detailed, user friendly representation. 
- 
  
    
      #step_context  ⇒ ExecutionStepContextList, ExecutionStepContextContext 
    
    
  
  
  
  
  
  
  
  
  
    Access the step_context. 
- 
  
    
      #to_s  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Provide a user friendly representation. 
Constructor Details
#initialize(version, flow_sid, execution_sid, sid) ⇒ ExecutionStepContext
Initialize the ExecutionStepContext
| 160 161 162 163 164 165 166 167 168 169 | # File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 160 def initialize(version, flow_sid, execution_sid, sid) super(version) # Path Solution @solution = {flow_sid: flow_sid, execution_sid: execution_sid, sid: sid, } @uri = "/Flows/#{@solution[:flow_sid]}/Executions/#{@solution[:execution_sid]}/Steps/#{@solution[:sid]}" # Dependents @step_context = nil end | 
Instance Method Details
#fetch ⇒ ExecutionStepInstance
Fetch the ExecutionStepInstance
| 174 175 176 177 178 179 180 181 182 183 184 | # File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 174 def fetch payload = @version.fetch('GET', @uri) ExecutionStepInstance.new( @version, payload, flow_sid: @solution[:flow_sid], execution_sid: @solution[:execution_sid], sid: @solution[:sid], ) end | 
#inspect ⇒ Object
Provide a detailed, user friendly representation
| 208 209 210 211 | # File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 208 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Studio.V2.ExecutionStepContext #{context}>" end | 
#step_context ⇒ ExecutionStepContextList, ExecutionStepContextContext
Access the step_context
| 190 191 192 193 194 195 196 197 | # File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 190 def step_context ExecutionStepContextContext.new( @version, @solution[:flow_sid], @solution[:execution_sid], @solution[:sid], ) end | 
#to_s ⇒ Object
Provide a user friendly representation
| 201 202 203 204 | # File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 201 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Studio.V2.ExecutionStepContext #{context}>" end |