class Twilio::REST::Pricing::V1::PhoneNumberPage

Public Class Methods

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

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

Calls superclass method Twilio::REST::Page::new
   # File lib/twilio-ruby/rest/pricing/v1/phone_number.rb
59 def initialize(version, response, solution)
60   super(version, response)
61 
62   # Path Solution
63   @solution = solution
64 end

Public Instance Methods

get_instance(payload) click to toggle source

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

   # File lib/twilio-ruby/rest/pricing/v1/phone_number.rb
70 def get_instance(payload)
71   PhoneNumberInstance.new(@version, payload, )
72 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/pricing/v1/phone_number.rb
76 def to_s
77   '<Twilio.Pricing.V1.PhoneNumberPage>'
78 end