Exception: Datamappify::Data::EntityInvalid
- Defined in:
- lib/datamappify/data/errors.rb
Instance Attribute Summary collapse
-
#entity ⇒ Object
readonly
Returns the value of attribute entity.
Instance Method Summary collapse
-
#initialize(entity) ⇒ EntityInvalid
constructor
A new instance of EntityInvalid.
Constructor Details
#initialize(entity) ⇒ EntityInvalid
Returns a new instance of EntityInvalid.
13 14 15 16 |
# File 'lib/datamappify/data/errors.rb', line 13 def initialize(entity) @entity = entity super entity.errors..join(', ') end |
Instance Attribute Details
#entity ⇒ Object (readonly)
Returns the value of attribute entity.
10 11 12 |
# File 'lib/datamappify/data/errors.rb', line 10 def entity @entity end |