class Twilio::REST::Api::V2010::AccountContext::AddressContext::DependentPhoneNumberPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the DependentPhoneNumberPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [DependentPhoneNumberPage] DependentPhoneNumberPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb 127 def initialize(version, response, solution) 128 super(version, response) 129 130 # Path Solution 131 @solution = solution 132 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of DependentPhoneNumberInstance
@param [Hash] payload Payload response from the API @return [DependentPhoneNumberInstance] DependentPhoneNumberInstance
# File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb 138 def get_instance(payload) 139 DependentPhoneNumberInstance.new( 140 @version, 141 payload, 142 account_sid: @solution[:account_sid], 143 address_sid: @solution[:address_sid], 144 ) 145 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb 149 def to_s 150 '<Twilio.Api.V2010.DependentPhoneNumberPage>' 151 end