Class: PiResources::Serializer::ResourceErrorsSerializer
- Inherits:
-
Object
- Object
- PiResources::Serializer::ResourceErrorsSerializer
- Includes:
- Base
- Defined in:
- lib/pi_resources/serializer/resource_errors_serializer.rb
Constant Summary
Constants included from Base
Instance Method Summary collapse
-
#initialize(errors) ⇒ ResourceErrorsSerializer
constructor
A new instance of ResourceErrorsSerializer.
Methods included from Base
#as_json, #run_key_transform!, #to_h
Constructor Details
#initialize(errors) ⇒ ResourceErrorsSerializer
Returns a new instance of ResourceErrorsSerializer.
11 12 13 |
# File 'lib/pi_resources/serializer/resource_errors_serializer.rb', line 11 def initialize(errors) @resource = errors end |