Class: Twilio::REST::Studio::V2::FlowContext::ExecutionContext::ExecutionContextContext
- Inherits:
- 
      InstanceContext
      
        - Object
- InstanceContext
- Twilio::REST::Studio::V2::FlowContext::ExecutionContext::ExecutionContextContext
 
- Defined in:
- lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb
Overview
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Instance Method Summary collapse
- 
  
    
      #fetch  ⇒ ExecutionContextInstance 
    
    
  
  
  
  
  
  
  
  
  
    Fetch the ExecutionContextInstance. 
- 
  
    
      #initialize(version, flow_sid, execution_sid)  ⇒ ExecutionContextContext 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Initialize the ExecutionContextContext. 
- 
  
    
      #inspect  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Provide a detailed, user friendly representation. 
- 
  
    
      #to_s  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Provide a user friendly representation. 
Constructor Details
#initialize(version, flow_sid, execution_sid) ⇒ ExecutionContextContext
Initialize the ExecutionContextContext
| 84 85 86 87 88 89 90 | # File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb', line 84 def initialize(version, flow_sid, execution_sid) super(version) # Path Solution @solution = {flow_sid: flow_sid, execution_sid: execution_sid, } @uri = "/Flows/#{@solution[:flow_sid]}/Executions/#{@solution[:execution_sid]}/Context" end | 
Instance Method Details
#fetch ⇒ ExecutionContextInstance
Fetch the ExecutionContextInstance
| 95 96 97 98 99 100 101 102 103 104 | # File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb', line 95 def fetch payload = @version.fetch('GET', @uri) ExecutionContextInstance.new( @version, payload, flow_sid: @solution[:flow_sid], execution_sid: @solution[:execution_sid], ) end | 
#inspect ⇒ Object
Provide a detailed, user friendly representation
| 115 116 117 118 | # File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb', line 115 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Studio.V2.ExecutionContextContext #{context}>" end | 
#to_s ⇒ Object
Provide a user friendly representation
| 108 109 110 111 | # File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb', line 108 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Studio.V2.ExecutionContextContext #{context}>" end |