class Twilio::REST::Verify::V2::ServiceContext::EntityContext::NewFactorPage

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 NewFactorPage @param [Version] version Version that contains the resource @param [Response] response Response from the API @param [Hash] solution Path solution for the resource @return [NewFactorPage] NewFactorPage

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
143 def initialize(version, response, solution)
144   super(version, response)
145 
146   # Path Solution
147   @solution = solution
148 end

Public Instance Methods

get_instance(payload) click to toggle source

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

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
154 def get_instance(payload)
155   NewFactorInstance.new(
156       @version,
157       payload,
158       service_sid: @solution[:service_sid],
159       identity: @solution[:identity],
160   )
161 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
165 def to_s
166   '<Twilio.Verify.V2.NewFactorPage>'
167 end