class Twilio::REST::Verify::V2::ServiceContext::EntityContext::ChallengePage
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 ChallengePage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [ChallengePage] ChallengePage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb 207 def initialize(version, response, solution) 208 super(version, response) 209 210 # Path Solution 211 @solution = solution 212 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of ChallengeInstance
@param [Hash] payload Payload response from the API @return [ChallengeInstance] ChallengeInstance
# File lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb 218 def get_instance(payload) 219 ChallengeInstance.new( 220 @version, 221 payload, 222 service_sid: @solution[:service_sid], 223 identity: @solution[:identity], 224 ) 225 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb 229 def to_s 230 '<Twilio.Verify.V2.ChallengePage>' 231 end