Class: Twilio::REST::Voice::V1::ByocTrunkPage

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

Constant Summary

Constants inherited from Page

Page::META_KEYS

Instance Method Summary collapse

Methods inherited from Page

#each, #load_page, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response

Constructor Details

#initialize(version, response, solution) ⇒ ByocTrunkPage

Initialize the ByocTrunkPage

Parameters:

  • Version that contains the resource

  • Response from the API

  • Path solution for the resource



537
538
539
540
541
542
543
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 537

def initialize(version, response, solution)
    super(version, response)
    

    # Path Solution
    @solution = solution
end

Instance Method Details

#get_instance(payload) ⇒ ByocTrunkInstance

Build an instance of ByocTrunkInstance

Parameters:

  • Payload response from the API

Returns:

  • ByocTrunkInstance



549
550
551
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 549

def get_instance(payload)
    ByocTrunkInstance.new(@version, payload)
end

#to_sObject

Provide a user friendly representation



555
556
557
# File 'lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb', line 555

def to_s
    '<Twilio.Voice.V1.ByocTrunkPage>'
end