Class: Moon::Response::JSON::ValidationErrors
- Inherits:
-
Moon::Response::JSON
- Object
- Base
- Moon::Response::JSON
- Moon::Response::JSON::ValidationErrors
- Defined in:
- lib/moon/response/json/validation_errors.rb
Overview
Moon::Response::JSON::ValidationErrors provides a simple response with the validation messages
Instance Attribute Summary
Attributes inherited from Moon::Response::JSON
Instance Method Summary collapse
-
#initialize(validation_errors) ⇒ ValidationErrors
constructor
A new instance of ValidationErrors.
Methods inherited from Moon::Response::JSON
Methods inherited from Base
Constructor Details
#initialize(validation_errors) ⇒ ValidationErrors
Returns a new instance of ValidationErrors.
5 6 7 |
# File 'lib/moon/response/json/validation_errors.rb', line 5 def initialize(validation_errors) super 200, :validation_errors => validation_errors end |