class Twilio::REST::Pricing::V2::VoiceList::CountryPage

Public Class Methods

new(version, response, solution) click to toggle source

Initialize the CountryPage @param [Version] version Version that contains the resource @param [Response] response Response from the API @param [Hash] solution Path solution for the resource @return [CountryPage] CountryPage

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/pricing/v2/voice/country.rb
121 def initialize(version, response, solution)
122   super(version, response)
123 
124   # Path Solution
125   @solution = solution
126 end

Public Instance Methods

get_instance(payload) click to toggle source

Build an instance of CountryInstance @param [Hash] payload Payload response from the API @return [CountryInstance] CountryInstance

    # File lib/twilio-ruby/rest/pricing/v2/voice/country.rb
132 def get_instance(payload)
133   CountryInstance.new(@version, payload, )
134 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/pricing/v2/voice/country.rb
138 def to_s
139   '<Twilio.Pricing.V2.CountryPage>'
140 end