Exception: SoftTrash::RecordNotRecovered

Inherits:
SoftTrashError show all
Defined in:
lib/soft_trash/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, record = nil) ⇒ RecordNotRecovered

Returns a new instance of RecordNotRecovered.



24
25
26
27
# File 'lib/soft_trash/errors.rb', line 24

def initialize(message = nil, record = nil)
  @record = record
  super(message)
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



22
23
24
# File 'lib/soft_trash/errors.rb', line 22

def record
  @record
end