Class: Twilio::REST::Voice::V1::ByocTrunkInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, byoc_trunk_instance, headers, status_code) ⇒ ByocTrunkInstanceMetadata

Initializes a new ByocTrunkInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}ByocTrunkInstance]

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



491
492
493
494
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 491

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

Instance Method Details

#byoc_trunkObject



496
497
498
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 496

def byoc_trunk
    @byoc_trunk_instance
end

#headersObject



500
501
502
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 500

def headers
    @headers
end

#status_codeObject



504
505
506
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 504

def status_code
    @status_code
end

#to_sObject



508
509
510
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 508

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