class Twilio::REST::Proxy::V1::ServiceContext::SessionContext::ParticipantPage

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

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/proxy/v1/service/session/participant.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 ParticipantInstance @param [Hash] payload Payload response from the API @return [ParticipantInstance] ParticipantInstance

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

Provide a user friendly representation

    # File lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb
194 def to_s
195   '<Twilio.Proxy.V1.ParticipantPage>'
196 end