class Twilio::REST::Api::V2010::AccountContext::TokenPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the TokenPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [TokenPage] TokenPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/api/v2010/account/token.rb 57 def initialize(version, response, solution) 58 super(version, response) 59 60 # Path Solution 61 @solution = solution 62 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of TokenInstance
@param [Hash] payload Payload response from the API @return [TokenInstance] TokenInstance
# File lib/twilio-ruby/rest/api/v2010/account/token.rb 68 def get_instance(payload) 69 TokenInstance.new(@version, payload, account_sid: @solution[:account_sid], ) 70 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/api/v2010/account/token.rb 74 def to_s 75 '<Twilio.Api.V2010.TokenPage>' 76 end