class Twilio::REST::Verify::V2::ServiceContext::EntityContext::ChallengeContext::NotificationPage

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

Calls superclass method Twilio::REST::Page::new
   # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
74 def initialize(version, response, solution)
75   super(version, response)
76 
77   # Path Solution
78   @solution = solution
79 end

Public Instance Methods

get_instance(payload) click to toggle source

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

   # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
85 def get_instance(payload)
86   NotificationInstance.new(
87       @version,
88       payload,
89       service_sid: @solution[:service_sid],
90       identity: @solution[:identity],
91       challenge_sid: @solution[:challenge_sid],
92   )
93 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
97 def to_s
98   '<Twilio.Verify.V2.NotificationPage>'
99 end