class Twilio::REST::Studio::V1::FlowContext::EngagementContext::StepContext
Public Class Methods
new(version, flow_sid, engagement_sid, sid)
click to toggle source
Initialize the StepContext
@param [Version] version Version
that contains the resource @param [String] flow_sid The SID of the Flow with the Step to fetch. @param [String] engagement_sid The SID of the Engagement with the Step to fetch. @param [String] sid The SID of the Step resource to fetch. @return [StepContext] StepContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb 159 def initialize(version, flow_sid, engagement_sid, sid) 160 super(version) 161 162 # Path Solution 163 @solution = {flow_sid: flow_sid, engagement_sid: engagement_sid, sid: sid, } 164 @uri = "/Flows/#{@solution[:flow_sid]}/Engagements/#{@solution[:engagement_sid]}/Steps/#{@solution[:sid]}" 165 166 # Dependents 167 @step_context = nil 168 end
Public Instance Methods
fetch()
click to toggle source
Fetch the StepInstance
@return [StepInstance] Fetched StepInstance
# File lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb 173 def fetch 174 payload = @version.fetch('GET', @uri) 175 176 StepInstance.new( 177 @version, 178 payload, 179 flow_sid: @solution[:flow_sid], 180 engagement_sid: @solution[:engagement_sid], 181 sid: @solution[:sid], 182 ) 183 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb 202 def inspect 203 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 204 "#<Twilio.Studio.V1.StepContext #{context}>" 205 end
step_context()
click to toggle source
Access the step_context
@return [StepContextList] @return [StepContextContext]
# File lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb 189 def step_context 190 StepContextContext.new(@version, @solution[:flow_sid], @solution[:engagement_sid], @solution[:sid], ) 191 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb 195 def to_s 196 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 197 "#<Twilio.Studio.V1.StepContext #{context}>" 198 end