Class: Twilio::REST::Voice::V2::TypeInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/voice/v2/type.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, type_instance, headers, status_code) ⇒ TypeInstanceMetadata

Initializes a new TypeInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}TypeInstance] —

    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.



233
234
235
236
# File 'lib/twilio-ruby/rest/voice/v2/type.rb', line 233

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

Instance Method Details

#headers ⇒ Object



242
243
244
# File 'lib/twilio-ruby/rest/voice/v2/type.rb', line 242

def headers
    @headers
end

#status_code ⇒ Object



246
247
248
# File 'lib/twilio-ruby/rest/voice/v2/type.rb', line 246

def status_code
    @status_code
end

#to_s ⇒ Object



250
251
252
# File 'lib/twilio-ruby/rest/voice/v2/type.rb', line 250

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

#type ⇒ Object



238
239
240
# File 'lib/twilio-ruby/rest/voice/v2/type.rb', line 238

def type
    @type_instance
end