Class: Railjet::ValidationError
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
- #error_messages ⇒ Object
-
#initialize(errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(errors) ⇒ ValidationError
Returns a new instance of ValidationError.
17 18 19 |
# File 'lib/railjet.rb', line 17 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
15 16 17 |
# File 'lib/railjet.rb', line 15 def errors @errors end |
Instance Method Details
#error_messages ⇒ Object
21 22 23 |
# File 'lib/railjet.rb', line 21 def errors.try(:messages) end |