Exception: RubstApi::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- RubstApi::ValidationError
- Defined in:
- lib/rubst_api/model.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(errors) ⇒ ValidationError
Returns a new instance of ValidationError.
10 11 12 13 |
# File 'lib/rubst_api/model.rb', line 10 def initialize(errors) @errors = errors super(errors.map { |e| e[:msg] }.join(", ")) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
9 10 11 |
# File 'lib/rubst_api/model.rb', line 9 def errors @errors end |