class Twilio::REST::Pricing::V2::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/country.rb
120 def initialize(version, response, solution)
121   super(version, response)
122 
123   # Path Solution
124   @solution = solution
125 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/country.rb
131 def get_instance(payload)
132   CountryInstance.new(@version, payload, )
133 end
to_s() click to toggle source

Provide a user friendly representation

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