Class: PiResources::Serializer::SmartHashSerializer
- Inherits:
-
HashSerializer
- Object
- HashSerializer
- PiResources::Serializer::SmartHashSerializer
- Defined in:
- lib/pi_resources/serializer/smart_hash_serializer.rb
Constant Summary
Constants included from Base
Instance Attribute Summary
Attributes inherited from HashSerializer
Instance Method Summary collapse
-
#initialize(resource, meta: nil, message: nil, context: nil, root: true) ⇒ SmartHashSerializer
constructor
A new instance of SmartHashSerializer.
Methods inherited from HashSerializer
Methods included from Base
#as_json, #run_key_transform!, #serializable_hash!, #to_h
Constructor Details
#initialize(resource, meta: nil, message: nil, context: nil, root: true) ⇒ SmartHashSerializer
Returns a new instance of SmartHashSerializer.
9 10 11 12 13 14 15 16 17 |
# File 'lib/pi_resources/serializer/smart_hash_serializer.rb', line 9 def initialize(resource, meta: nil, message: nil, context: nil, root: true) super( check_type(resource), meta: , message: , context: context, root: root, ) end |