Class: Twilio::REST::Studio::V1::FlowContext::EngagementContext::StepContext::StepContextInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, step_context_instance, headers, status_code) ⇒ StepContextInstanceMetadata

Initializes a new StepContextInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}StepContextInstance]

    step_context_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



138
139
140
141
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb', line 138

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

Instance Method Details

#headersObject



147
148
149
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb', line 147

def headers
    @headers
end

#status_codeObject



151
152
153
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb', line 151

def status_code
    @status_code
end

#step_contextObject



143
144
145
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb', line 143

def step_context
    @step_context_instance
end

#to_sObject



155
156
157
# File 'lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb', line 155

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