class Twilio::REST::Studio::V1::FlowContext::ExecutionContext::ExecutionStepContext::ExecutionStepContextInstance

Public Class Methods

new(version, payload, flow_sid: nil, execution_sid: nil, step_sid: nil) click to toggle source

Initialize the ExecutionStepContextInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] flow_sid The SID of the Flow. @param [String] execution_sid The SID of the context's Execution resource. @param [String] step_sid The SID of the Step that the context is associated

with.

@return [ExecutionStepContextInstance] ExecutionStepContextInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb
131 def initialize(version, payload, flow_sid: nil, execution_sid: nil, step_sid: nil)
132   super(version)
133 
134   # Marshaled Properties
135   @properties = {
136       'account_sid' => payload['account_sid'],
137       'context' => payload['context'],
138       'execution_sid' => payload['execution_sid'],
139       'flow_sid' => payload['flow_sid'],
140       'step_sid' => payload['step_sid'],
141       'url' => payload['url'],
142   }
143 
144   # Context
145   @instance_context = nil
146   @params = {'flow_sid' => flow_sid, 'execution_sid' => execution_sid, 'step_sid' => step_sid, }
147 end

Public Instance Methods

account_sid() click to toggle source

@return [String] The SID of the Account that created the resource

    # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb
167 def account_sid
168   @properties['account_sid']
169 end
context() click to toggle source

Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return [ExecutionStepContextContext] ExecutionStepContextContext for this ExecutionStepContextInstance

    # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb
153 def context
154   unless @instance_context
155     @instance_context = ExecutionStepContextContext.new(
156         @version,
157         @params['flow_sid'],
158         @params['execution_sid'],
159         @params['step_sid'],
160     )
161   end
162   @instance_context
163 end
execution_sid() click to toggle source

@return [String] The SID of the Execution

    # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb
179 def execution_sid
180   @properties['execution_sid']
181 end
fetch() click to toggle source

Fetch the ExecutionStepContextInstance @return [ExecutionStepContextInstance] Fetched ExecutionStepContextInstance

    # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb
204 def fetch
205   context.fetch
206 end
flow_sid() click to toggle source

@return [String] The SID of the Flow

    # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb
185 def flow_sid
186   @properties['flow_sid']
187 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb
217 def inspect
218   values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
219   "<Twilio.Studio.V1.ExecutionStepContextInstance #{values}>"
220 end
step_sid() click to toggle source

@return [String] Step SID

    # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb
191 def step_sid
192   @properties['step_sid']
193 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb
210 def to_s
211   values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
212   "<Twilio.Studio.V1.ExecutionStepContextInstance #{values}>"
213 end
url() click to toggle source

@return [String] The absolute URL of the resource

    # File lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb
197 def url
198   @properties['url']
199 end