class Twilio::REST::Pricing::V2::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/number.rb 39 def initialize(version, response, solution) 40 super(version, response) 41 42 # Path Solution 43 @solution = solution 44 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/number.rb 50 def get_instance(payload) 51 NumberInstance.new(@version, payload, ) 52 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/pricing/v2/number.rb 56 def to_s 57 '<Twilio.Pricing.V2.NumberPage>' 58 end