class Twilio::REST::Messaging::V1::ServiceContext::AlphaSenderPage

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

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb
142 def initialize(version, response, solution)
143   super(version, response)
144 
145   # Path Solution
146   @solution = solution
147 end

Public Instance Methods

get_instance(payload) click to toggle source

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

    # File lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb
153 def get_instance(payload)
154   AlphaSenderInstance.new(@version, payload, service_sid: @solution[:service_sid], )
155 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb
159 def to_s
160   '<Twilio.Messaging.V1.AlphaSenderPage>'
161 end