class Twilio::REST::Insights::V1::RoomContext::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/insights/v1/room/participant.rb 126 def initialize(version, response, solution) 127 super(version, response) 128 129 # Path Solution 130 @solution = solution 131 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/insights/v1/room/participant.rb 137 def get_instance(payload) 138 ParticipantInstance.new(@version, payload, room_sid: @solution[:room_sid], ) 139 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/insights/v1/room/participant.rb 143 def to_s 144 '<Twilio.Insights.V1.ParticipantPage>' 145 end