class Twilio::REST::Video::V1::RoomContext::RoomRecordingContext

Public Class Methods

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

Initialize the RoomRecordingContext @param [Version] version Version that contains the resource @param [String] room_sid The SID of the Room resource with the recording to

fetch.

@param [String] sid The SID of the RoomRecording resource to fetch. @return [RoomRecordingContext] RoomRecordingContext

Calls superclass method Twilio::REST::InstanceContext::new
    # File lib/twilio-ruby/rest/video/v1/room/recording.rb
191 def initialize(version, room_sid, sid)
192   super(version)
193 
194   # Path Solution
195   @solution = {room_sid: room_sid, sid: sid, }
196   @uri = "/Rooms/#{@solution[:room_sid]}/Recordings/#{@solution[:sid]}"
197 end

Public Instance Methods

delete() click to toggle source

Delete the RoomRecordingInstance @return [Boolean] true if delete succeeds, false otherwise

    # File lib/twilio-ruby/rest/video/v1/room/recording.rb
211 def delete
212    @version.delete('DELETE', @uri)
213 end
fetch() click to toggle source

Fetch the RoomRecordingInstance @return [RoomRecordingInstance] Fetched RoomRecordingInstance

    # File lib/twilio-ruby/rest/video/v1/room/recording.rb
202 def fetch
203   payload = @version.fetch('GET', @uri)
204 
205   RoomRecordingInstance.new(@version, payload, room_sid: @solution[:room_sid], sid: @solution[:sid], )
206 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/video/v1/room/recording.rb
224 def inspect
225   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
226   "#<Twilio.Video.V1.RoomRecordingContext #{context}>"
227 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/video/v1/room/recording.rb
217 def to_s
218   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
219   "#<Twilio.Video.V1.RoomRecordingContext #{context}>"
220 end