class Twilio::REST::Proxy::V1::ServiceContext::SessionPage

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

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/proxy/v1/service/session.rb
175 def initialize(version, response, solution)
176   super(version, response)
177 
178   # Path Solution
179   @solution = solution
180 end

Public Instance Methods

get_instance(payload) click to toggle source

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

    # File lib/twilio-ruby/rest/proxy/v1/service/session.rb
186 def get_instance(payload)
187   SessionInstance.new(@version, payload, service_sid: @solution[:service_sid], )
188 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/proxy/v1/service/session.rb
192 def to_s
193   '<Twilio.Proxy.V1.SessionPage>'
194 end