Exception: Objective::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Objective::ValidationError
- Defined in:
- lib/objective/errors/validation_error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #to_s ⇒ Object
Constructor Details
#initialize(errors) ⇒ ValidationError
Returns a new instance of ValidationError.
7 8 9 |
# File 'lib/objective/errors/validation_error.rb', line 7 def initialize(errors) self.errors = errors end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
5 6 7 |
# File 'lib/objective/errors/validation_error.rb', line 5 def errors @errors end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/objective/errors/validation_error.rb', line 11 def to_s errors..join('; ').to_s end |