Class: Twilio::REST::Studio::V1::FlowContext::EngagementContext::StepInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, step_instance, headers, status_code) ⇒ StepInstanceMetadata

Initializes a new StepInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}StepInstance]

    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/engagement/step.rb', line 259

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

Instance Method Details

#headersObject



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

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#stepObject



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

def step
    @step_instance
end

#to_sObject



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

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