Class: ROM::Model::ValidationError
- Inherits:
-
CommandError
- Object
- CommandError
- ROM::Model::ValidationError
- Defined in:
- lib/rom/model.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(params) ⇒ ValidationError
Returns a new instance of ValidationError.
9 10 11 12 |
# File 'lib/rom/model.rb', line 9 def initialize(params) @params = params @messages = params.errors end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
7 8 9 |
# File 'lib/rom/model.rb', line 7 def @messages end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
7 8 9 |
# File 'lib/rom/model.rb', line 7 def params @params end |