class Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberContext::AssignedAddOnPage

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Public Class Methods

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

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

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb
149 def initialize(version, response, solution)
150   super(version, response)
151 
152   # Path Solution
153   @solution = solution
154 end

Public Instance Methods

get_instance(payload) click to toggle source

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

    # File lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb
160 def get_instance(payload)
161   AssignedAddOnInstance.new(
162       @version,
163       payload,
164       account_sid: @solution[:account_sid],
165       resource_sid: @solution[:resource_sid],
166   )
167 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb
171 def to_s
172   '<Twilio.Api.V2010.AssignedAddOnPage>'
173 end