Exception: Datamappify::Data::EntityInvalid

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entity) ⇒ EntityInvalid

Returns a new instance of EntityInvalid.

Parameters:



13
14
15
16
# File 'lib/datamappify/data/errors.rb', line 13

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

Instance Attribute Details

#entityObject (readonly)

Returns the value of attribute entity.



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

def entity
  @entity
end