Exception: ActiveGraph::Node::Persistence::RecordInvalidError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/active_graph/node/persistence.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ RecordInvalidError

Returns a new instance of RecordInvalidError.



6
7
8
9
# File 'lib/active_graph/node/persistence.rb', line 6

def initialize(record)
  @record = record
  super(@record.errors.full_messages.join(', '))
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



4
5
6
# File 'lib/active_graph/node/persistence.rb', line 4

def record
  @record
end