Exception: Cassie::RecordInvalid

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cassie.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ RecordInvalid

Returns a new instance of RecordInvalid.



18
19
20
21
# File 'lib/cassie.rb', line 18

def initialize(record)
  super("Errors on #{record.class.name}: #{record.errors.to_hash.inspect}")
  @record = record
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



16
17
18
# File 'lib/cassie.rb', line 16

def record
  @record
end