Class: Twilio::REST::Video::V1::RecordingContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Video::V1::RecordingContext
- Defined in:
- lib/twilio-ruby/rest/video/v1/recording.rb
Instance Method Summary collapse
-
#delete ⇒ Boolean
Deletes the RecordingInstance.
-
#fetch ⇒ RecordingInstance
Fetch a RecordingInstance.
-
#initialize(version, sid) ⇒ RecordingContext
constructor
Initialize the RecordingContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, sid) ⇒ RecordingContext
Initialize the RecordingContext
213 214 215 216 217 218 219 |
# File 'lib/twilio-ruby/rest/video/v1/recording.rb', line 213 def initialize(version, sid) super(version) # Path Solution @solution = {sid: sid, } @uri = "/Recordings/#{@solution[:sid]}" end |
Instance Method Details
#delete ⇒ Boolean
Deletes the RecordingInstance
239 240 241 |
# File 'lib/twilio-ruby/rest/video/v1/recording.rb', line 239 def delete @version.delete('delete', @uri) end |
#fetch ⇒ RecordingInstance
Fetch a RecordingInstance
224 225 226 227 228 229 230 231 232 233 234 |
# File 'lib/twilio-ruby/rest/video/v1/recording.rb', line 224 def fetch params = Twilio::Values.of({}) payload = @version.fetch( 'GET', @uri, params, ) RecordingInstance.new(@version, payload, sid: @solution[:sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
252 253 254 255 |
# File 'lib/twilio-ruby/rest/video/v1/recording.rb', line 252 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Video.V1.RecordingContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
245 246 247 248 |
# File 'lib/twilio-ruby/rest/video/v1/recording.rb', line 245 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Video.V1.RecordingContext #{context}>" end |