Class: Twilio::REST::Studio::V1::FlowContext::ExecutionContext::ExecutionStepContext::ExecutionStepContextContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Studio::V1::FlowContext::ExecutionContext::ExecutionStepContext::ExecutionStepContextContext
- Defined in:
- lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_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 ⇒ ExecutionStepContextInstance
Fetch a ExecutionStepContextInstance.
-
#initialize(version, flow_sid, execution_sid, step_sid) ⇒ ExecutionStepContextContext
constructor
Initialize the ExecutionStepContextContext.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, flow_sid, execution_sid, step_sid) ⇒ ExecutionStepContextContext
Initialize the ExecutionStepContextContext
88 89 90 91 92 93 94 |
# File 'lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb', line 88 def initialize(version, flow_sid, execution_sid, step_sid) super(version) # Path Solution @solution = {flow_sid: flow_sid, execution_sid: execution_sid, step_sid: step_sid, } @uri = "/Flows/#{@solution[:flow_sid]}/Executions/#{@solution[:execution_sid]}/Steps/#{@solution[:step_sid]}/Context" end |
Instance Method Details
#fetch ⇒ ExecutionStepContextInstance
Fetch a ExecutionStepContextInstance
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb', line 99 def fetch params = Twilio::Values.of({}) payload = @version.fetch( 'GET', @uri, params, ) ExecutionStepContextInstance.new( @version, payload, flow_sid: @solution[:flow_sid], execution_sid: @solution[:execution_sid], step_sid: @solution[:step_sid], ) end |
#to_s ⇒ Object
Provide a user friendly representation
119 120 121 122 |
# File 'lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb', line 119 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Studio.V1.ExecutionStepContextContext #{context}>" end |