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.



259
260
261
262
# File 'lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb', line 259

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



264
265
266
# File 'lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb', line 264

def execution_step
    @execution_step_instance
end

#headersObject



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

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

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