class Twilio::REST::Video::V1::RoomContext::ParticipantPage
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/video/v1/room/room_participant.rb 169 def initialize(version, response, solution) 170 super(version, response) 171 172 # Path Solution 173 @solution = solution 174 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/video/v1/room/room_participant.rb 180 def get_instance(payload) 181 ParticipantInstance.new(@version, payload, room_sid: @solution[:room_sid], ) 182 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/video/v1/room/room_participant.rb 186 def to_s 187 '<Twilio.Video.V1.ParticipantPage>' 188 end