Exception: Camcorder::RecordingError

Inherits:
Error
  • Object
show all
Defined in:
lib/camcorder/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ RecordingError

Returns a new instance of RecordingError.



7
8
9
# File 'lib/camcorder/errors.rb', line 7

def initialize(key)
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



6
7
8
# File 'lib/camcorder/errors.rb', line 6

def key
  @key
end

Instance Method Details

#messageObject



10
11
12
# File 'lib/camcorder/errors.rb', line 10

def message
  "Recording for key #{key} has changed"
end