Class: Twilio::REST::Authy::V1::ServiceContext::EntityContext::FactorContext::ChallengePage
- Inherits:
-
Page
- Object
- Page
- Twilio::REST::Authy::V1::ServiceContext::EntityContext::FactorContext::ChallengePage
- Defined in:
- lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb
Overview
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
Constant Summary
Constants inherited from Page
Instance Method Summary collapse
-
#get_instance(payload) ⇒ ChallengeInstance
Build an instance of ChallengeInstance.
-
#initialize(version, response, solution) ⇒ ChallengePage
constructor
Initialize the ChallengePage.
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from Page
#each, #load_page, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response
Constructor Details
#initialize(version, response, solution) ⇒ ChallengePage
Initialize the ChallengePage
83 84 85 86 87 88 |
# File 'lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb', line 83 def initialize(version, response, solution) super(version, response) # Path Solution @solution = solution end |
Instance Method Details
#get_instance(payload) ⇒ ChallengeInstance
Build an instance of ChallengeInstance
94 95 96 97 98 99 100 101 102 |
# File 'lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb', line 94 def get_instance(payload) ChallengeInstance.new( @version, payload, service_sid: @solution[:service_sid], identity: @solution[:identity], factor_sid: @solution[:factor_sid], ) end |
#to_s ⇒ Object
Provide a user friendly representation
106 107 108 |
# File 'lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb', line 106 def to_s '<Twilio.Authy.V1.ChallengePage>' end |