class Twilio::REST::Video::V1::RoomContext::ParticipantContext::PublishedTrackPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the PublishedTrackPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [PublishedTrackPage] PublishedTrackPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.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 PublishedTrackInstance
@param [Hash] payload Payload response from the API @return [PublishedTrackInstance] PublishedTrackInstance
# File lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb 137 def get_instance(payload) 138 PublishedTrackInstance.new( 139 @version, 140 payload, 141 room_sid: @solution[:room_sid], 142 participant_sid: @solution[:participant_sid], 143 ) 144 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb 148 def to_s 149 '<Twilio.Video.V1.PublishedTrackPage>' 150 end