Class: PanStuff::Serializer::ResourceErrorsSerializer
- Inherits:
-
Object
- Object
- PanStuff::Serializer::ResourceErrorsSerializer
- Includes:
- Base
- Defined in:
- lib/pan_stuff/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.
8 9 10 |
# File 'lib/pan_stuff/serializer/resource_errors_serializer.rb', line 8 def initialize(errors) @resource = errors end |