Class: Twilio::REST::Studio::V2::FlowContext::ExecutionContext::ExecutionContextInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, execution_context_instance, headers, status_code) ⇒ ExecutionContextInstanceMetadata

Initializes a new ExecutionContextInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}ExecutionContextInstance] —

    execution_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.



134
135
136
137
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb', line 134

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

Instance Method Details

#execution_context ⇒ Object



139
140
141
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb', line 139

def execution_context
    @execution_context_instance
end

#headers ⇒ Object



143
144
145
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb', line 143

def headers
    @headers
end

#status_code ⇒ Object



147
148
149
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb', line 147

def status_code
    @status_code
end

#to_s ⇒ Object



151
152
153
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb', line 151

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