Class: Twilio::REST::Intelligence::V3::OperatorResultInstanceMetadata

Inherits:
Twilio::REST::InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/intelligence/v3/operator_result.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, operator_result_instance, headers, status_code) ⇒ OperatorResultInstanceMetadata

Initializes a new OperatorResultInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}OperatorResultInstance]

    operator_result_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



312
313
314
315
# File 'lib/twilio-ruby/rest/intelligence/v3/operator_result.rb', line 312

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

Instance Method Details

#headersObject



321
322
323
# File 'lib/twilio-ruby/rest/intelligence/v3/operator_result.rb', line 321

def headers
    @headers
end

#operator_resultObject



317
318
319
# File 'lib/twilio-ruby/rest/intelligence/v3/operator_result.rb', line 317

def operator_result
    @operator_result_instance
end

#status_codeObject



325
326
327
# File 'lib/twilio-ruby/rest/intelligence/v3/operator_result.rb', line 325

def status_code
    @status_code
end

#to_sObject



329
330
331
# File 'lib/twilio-ruby/rest/intelligence/v3/operator_result.rb', line 329

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