Class: PiResources::Serializer::ResourceErrorsSerializer

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/pi_resources/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.



11
12
13
# File 'lib/pi_resources/serializer/resource_errors_serializer.rb', line 11

def initialize(errors)
  @resource             = errors
end