class Twilio::REST::Insights::V1::RoomContext::ParticipantContext

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Public Class Methods

new(version, room_sid, participant_sid) click to toggle source

Initialize the ParticipantContext @param [Version] version Version that contains the resource @param [String] room_sid The SID of the Room resource. @param [String] participant_sid The SID of the Participant resource. @return [ParticipantContext] ParticipantContext

Calls superclass method Twilio::REST::InstanceContext::new
    # File lib/twilio-ruby/rest/insights/v1/room/participant.rb
157 def initialize(version, room_sid, participant_sid)
158   super(version)
159 
160   # Path Solution
161   @solution = {room_sid: room_sid, participant_sid: participant_sid, }
162   @uri = "/Video/Rooms/#{@solution[:room_sid]}/Participants/#{@solution[:participant_sid]}"
163 end

Public Instance Methods

fetch() click to toggle source

Fetch the ParticipantInstance @return [ParticipantInstance] Fetched ParticipantInstance

    # File lib/twilio-ruby/rest/insights/v1/room/participant.rb
168 def fetch
169   payload = @version.fetch('GET', @uri)
170 
171   ParticipantInstance.new(
172       @version,
173       payload,
174       room_sid: @solution[:room_sid],
175       participant_sid: @solution[:participant_sid],
176   )
177 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/insights/v1/room/participant.rb
188 def inspect
189   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
190   "#<Twilio.Insights.V1.ParticipantContext #{context}>"
191 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/insights/v1/room/participant.rb
181 def to_s
182   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
183   "#<Twilio.Insights.V1.ParticipantContext #{context}>"
184 end