Class: Twilio::REST::Studio::V2::FlowContext::ExecutionContext::ExecutionStepInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Studio::V2::FlowContext::ExecutionContext::ExecutionStepInstance
- Defined in:
- lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the ExecutionStep resource.
-
#context ⇒ Hash
The current state of the Flow’s Execution.
-
#date_created ⇒ Time
The date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#date_updated ⇒ Time
The date and time in GMT when the resource was last updated specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#execution_sid ⇒ String
The SID of the Step’s Execution resource.
-
#fetch ⇒ ExecutionStepInstance
Fetch the ExecutionStepInstance.
-
#flow_sid ⇒ String
The SID of the Flow.
-
#initialize(version, payload, flow_sid: nil, execution_sid: nil, sid: nil) ⇒ ExecutionStepInstance
constructor
Initialize the ExecutionStepInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#links ⇒ Hash
The URLs of related resources.
-
#name ⇒ String
The event that caused the Flow to transition to the Step.
-
#parent_step_sid ⇒ String
The SID of the parent Step.
-
#sid ⇒ String
The unique string that we created to identify the ExecutionStep resource.
-
#step_context ⇒ step_context
Access the step_context.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#transitioned_from ⇒ String
The Widget that preceded the Widget for the Step.
-
#transitioned_to ⇒ String
The Widget that will follow the Widget for the Step.
-
#type ⇒ String
The type of the widget that was executed.
-
#url ⇒ String
The absolute URL of the resource.
Constructor Details
#initialize(version, payload, flow_sid: nil, execution_sid: nil, sid: nil) ⇒ ExecutionStepInstance
Initialize the ExecutionStepInstance
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 238 def initialize(version, payload , flow_sid: nil, execution_sid: nil, sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'account_sid' => payload['account_sid'], 'flow_sid' => payload['flow_sid'], 'execution_sid' => payload['execution_sid'], 'parent_step_sid' => payload['parent_step_sid'], 'name' => payload['name'], 'context' => payload['context'], 'transitioned_from' => payload['transitioned_from'], 'transitioned_to' => payload['transitioned_to'], 'type' => payload['type'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 'url' => payload['url'], 'links' => payload['links'], } # Context @instance_context = nil @params = { 'flow_sid' => flow_sid || @properties['flow_sid'] ,'execution_sid' => execution_sid || @properties['execution_sid'] ,'sid' => sid || @properties['sid'] , } end |
Instance Method Details
#account_sid ⇒ String
283 284 285 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 283 def account_sid @properties['account_sid'] end |
#context ⇒ Hash
268 269 270 271 272 273 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 268 def context unless @instance_context @instance_context = ExecutionStepContext.new(@version , @params['flow_sid'], @params['execution_sid'], @params['sid']) end @instance_context end |
#date_created ⇒ Time
337 338 339 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 337 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
343 344 345 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 343 def date_updated @properties['date_updated'] end |
#execution_sid ⇒ String
295 296 297 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 295 def execution_sid @properties['execution_sid'] end |
#fetch ⇒ ExecutionStepInstance
Fetch the ExecutionStepInstance
362 363 364 365 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 362 def fetch context.fetch end |
#flow_sid ⇒ String
289 290 291 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 289 def flow_sid @properties['flow_sid'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
383 384 385 386 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 383 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Studio.V2.ExecutionStepInstance #{values}>" end |
#links ⇒ Hash
355 356 357 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 355 def links @properties['links'] end |
#name ⇒ String
307 308 309 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 307 def name @properties['name'] end |
#parent_step_sid ⇒ String
301 302 303 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 301 def parent_step_sid @properties['parent_step_sid'] end |
#sid ⇒ String
277 278 279 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 277 def sid @properties['sid'] end |
#step_context ⇒ step_context
Access the step_context
370 371 372 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 370 def step_context context.step_context end |
#to_s ⇒ Object
Provide a user friendly representation
376 377 378 379 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 376 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Studio.V2.ExecutionStepInstance #{values}>" end |
#transitioned_from ⇒ String
319 320 321 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 319 def transitioned_from @properties['transitioned_from'] end |
#transitioned_to ⇒ String
325 326 327 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 325 def transitioned_to @properties['transitioned_to'] end |
#type ⇒ String
331 332 333 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 331 def type @properties['type'] end |
#url ⇒ String
349 350 351 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb', line 349 def url @properties['url'] end |