class Twilio::REST::Pricing::V2::VoiceList::NumberPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the NumberPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [NumberPage] NumberPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/pricing/v2/voice/number.rb 40 def initialize(version, response, solution) 41 super(version, response) 42 43 # Path Solution 44 @solution = solution 45 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of NumberInstance
@param [Hash] payload Payload response from the API @return [NumberInstance] NumberInstance
# File lib/twilio-ruby/rest/pricing/v2/voice/number.rb 51 def get_instance(payload) 52 NumberInstance.new(@version, payload, ) 53 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/pricing/v2/voice/number.rb 57 def to_s 58 '<Twilio.Pricing.V2.NumberPage>' 59 end