Class: Respo::Errors::Base
- Includes:
- Helpers
- Defined in:
- lib/respo/errors/base.rb
Instance Attribute Summary
Attributes inherited from Response
Instance Method Summary collapse
Methods included from Helpers
#action_name, #camelize, pluralize, singularize
Methods inherited from Response
call, #initialize, #serializer
Constructor Details
This class inherits a constructor from Respo::Response
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'lib/respo/errors/base.rb', line 8 def call { json: { errors: @record.errors. }, status: status_code } end |