Class: Twilio::REST::Intelligence::V2::OperatorTypeInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, operator_type_instance, headers, status_code) ⇒ OperatorTypeInstanceMetadata

Initializes a new OperatorTypeInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}OperatorTypeInstance] —

    operator_type_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



253
254
255
256
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_type.rb', line 253

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

Instance Method Details

#headers ⇒ Object



262
263
264
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_type.rb', line 262

def headers
    @headers
end

#operator_type ⇒ Object



258
259
260
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_type.rb', line 258

def operator_type
    @operator_type_instance
end

#status_code ⇒ Object



266
267
268
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_type.rb', line 266

def status_code
    @status_code
end

#to_s ⇒ Object



270
271
272
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_type.rb', line 270

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