class Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the AvailablePhoneNumberCountryPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [AvailablePhoneNumberCountryPage] AvailablePhoneNumberCountryPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb 123 def initialize(version, response, solution) 124 super(version, response) 125 126 # Path Solution 127 @solution = solution 128 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of AvailablePhoneNumberCountryInstance
@param [Hash] payload Payload response from the API @return [AvailablePhoneNumberCountryInstance] AvailablePhoneNumberCountryInstance
# File lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb 134 def get_instance(payload) 135 AvailablePhoneNumberCountryInstance.new(@version, payload, account_sid: @solution[:account_sid], ) 136 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb 140 def to_s 141 '<Twilio.Api.V2010.AvailablePhoneNumberCountryPage>' 142 end