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

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

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb
131 def initialize(version, response, solution)
132   super(version, response)
133 
134   # Path Solution
135   @solution = solution
136 end

Public Instance Methods

get_instance(payload) click to toggle source

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

    # File lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb
142 def get_instance(payload)
143   FactorInstance.new(
144       @version,
145       payload,
146       service_sid: @solution[:service_sid],
147       identity: @solution[:identity],
148   )
149 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb
153 def to_s
154   '<Twilio.Verify.V2.FactorPage>'
155 end