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.
6 7 8 |
# File 'lib/objective/errors/validation_error.rb', line 6 def initialize(errors) self.errors = errors end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
4 5 6 |
# File 'lib/objective/errors/validation_error.rb', line 4 def errors @errors end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/objective/errors/validation_error.rb', line 10 def to_s errors..join('; ').to_s end |