Class: Twilio::REST::Studio::V1::FlowContext::ExecutionContext::ExecutionStepInstanceMetadata

Inherits:
InstanceResourceMetadata
  • Object
show all
Defined in:
lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, execution_step_instance, headers, status_code) ⇒ ExecutionStepInstanceMetadata

Initializes a new ExecutionStepInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}ExecutionStepInstance]

    execution_step_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



267
268
269
270
# File 'lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb', line 267

def initialize(version, execution_step_instance, headers, status_code)
    super(version, headers, status_code)
    @execution_step_instance = execution_step_instance
end

Instance Method Details

#execution_stepObject



272
273
274
# File 'lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb', line 272

def execution_step
    @execution_step_instance
end

#headersObject



276
277
278
# File 'lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb', line 276

def headers
    @headers
end

#status_codeObject



280
281
282
# File 'lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb', line 280

def status_code
    @status_code
end

#to_sObject



284
285
286
# File 'lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb', line 284

def to_s
  "<Twilio.Api.V2010.ExecutionStepInstanceMetadata status=#{@status_code}>"
end