class Twilio::REST::Accounts::V1::AuthTokenPromotionPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the AuthTokenPromotionPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [AuthTokenPromotionPage] AuthTokenPromotionPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.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 AuthTokenPromotionInstance
@param [Hash] payload Payload response from the API @return [AuthTokenPromotionInstance] AuthTokenPromotionInstance
# File lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb 50 def get_instance(payload) 51 AuthTokenPromotionInstance.new(@version, payload, ) 52 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb 56 def to_s 57 '<Twilio.Accounts.V1.AuthTokenPromotionPage>' 58 end