class Twilio::REST::Notify::V1::ServiceContext::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/notify/v1/service/notification.rb
172 def initialize(version, response, solution)
173   super(version, response)
174 
175   # Path Solution
176   @solution = solution
177 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/notify/v1/service/notification.rb
183 def get_instance(payload)
184   NotificationInstance.new(@version, payload, service_sid: @solution[:service_sid], )
185 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/notify/v1/service/notification.rb
189 def to_s
190   '<Twilio.Notify.V1.NotificationPage>'
191 end