class Twilio::REST::Studio::V1::FlowContext::ExecutionContext::ExecutionContextContext

Public Class Methods

new(version, flow_sid, execution_sid) click to toggle source

Initialize the ExecutionContextContext @param [Version] version Version that contains the resource @param [String] flow_sid The SID of the Flow with the Execution context to

fetch.

@param [String] execution_sid The SID of the Execution context to fetch. @return [ExecutionContextContext] ExecutionContextContext

Calls superclass method Twilio::REST::InstanceContext::new
   # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb
78 def initialize(version, flow_sid, execution_sid)
79   super(version)
80 
81   # Path Solution
82   @solution = {flow_sid: flow_sid, execution_sid: execution_sid, }
83   @uri = "/Flows/#{@solution[:flow_sid]}/Executions/#{@solution[:execution_sid]}/Context"
84 end

Public Instance Methods

fetch() click to toggle source

Fetch the ExecutionContextInstance @return [ExecutionContextInstance] Fetched ExecutionContextInstance

   # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb
89 def fetch
90   payload = @version.fetch('GET', @uri)
91 
92   ExecutionContextInstance.new(
93       @version,
94       payload,
95       flow_sid: @solution[:flow_sid],
96       execution_sid: @solution[:execution_sid],
97   )
98 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb
109 def inspect
110   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
111   "#<Twilio.Studio.V1.ExecutionContextContext #{context}>"
112 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb
102 def to_s
103   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
104   "#<Twilio.Studio.V1.ExecutionContextContext #{context}>"
105 end