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.



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

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



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

def byoc_trunk
    @byoc_trunk_instance
end

#headersObject



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

def headers
    @headers
end

#status_codeObject



512
513
514
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 512

def status_code
    @status_code
end

#to_sObject



516
517
518
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 516

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