Class: PanStuff::Serializer::ResourceErrorsSerializer

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/pan_stuff/serializer/resource_errors_serializer.rb

Constant Summary

Constants included from Base

Base::TRANSFORMS_MAPPING

Instance Method Summary collapse

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