Class: Twilio::REST::Trunking::V1::TrunkInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/trunking/v1/trunk.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, trunk_instance, headers, status_code) ⇒ TrunkInstanceMetadata

Initializes a new TrunkInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}TrunkInstance]

    trunk_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



558
559
560
561
# File 'lib/twilio-ruby/rest/trunking/v1/trunk.rb', line 558

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

Instance Method Details

#headersObject



567
568
569
# File 'lib/twilio-ruby/rest/trunking/v1/trunk.rb', line 567

def headers
    @headers
end

#status_codeObject



571
572
573
# File 'lib/twilio-ruby/rest/trunking/v1/trunk.rb', line 571

def status_code
    @status_code
end

#to_sObject



575
576
577
# File 'lib/twilio-ruby/rest/trunking/v1/trunk.rb', line 575

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

#trunkObject



563
564
565
# File 'lib/twilio-ruby/rest/trunking/v1/trunk.rb', line 563

def trunk
    @trunk_instance
end