class Twilio::REST::Video::V1::RecordingContext
Public Class Methods
new(version, sid)
click to toggle source
Initialize the RecordingContext
@param [Version] version Version
that contains the resource @param [String] sid The SID of the Recording resource to fetch. @return [RecordingContext] RecordingContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/video/v1/recording.rb 210 def initialize(version, sid) 211 super(version) 212 213 # Path Solution 214 @solution = {sid: sid, } 215 @uri = "/Recordings/#{@solution[:sid]}" 216 end
Public Instance Methods
delete()
click to toggle source
Delete the RecordingInstance
@return [Boolean] true if delete succeeds, false otherwise
# File lib/twilio-ruby/rest/video/v1/recording.rb 230 def delete 231 @version.delete('DELETE', @uri) 232 end
fetch()
click to toggle source
Fetch the RecordingInstance
@return [RecordingInstance] Fetched RecordingInstance
# File lib/twilio-ruby/rest/video/v1/recording.rb 221 def fetch 222 payload = @version.fetch('GET', @uri) 223 224 RecordingInstance.new(@version, payload, sid: @solution[:sid], ) 225 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/video/v1/recording.rb 243 def inspect 244 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 245 "#<Twilio.Video.V1.RecordingContext #{context}>" 246 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/video/v1/recording.rb 236 def to_s 237 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 238 "#<Twilio.Video.V1.RecordingContext #{context}>" 239 end