Class: PanStuff::Serializer::SmartHashSerializer
- Inherits:
-
HashSerializer
- Object
- HashSerializer
- PanStuff::Serializer::SmartHashSerializer
- Defined in:
- lib/pan_stuff/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.
6 7 8 9 10 11 12 13 14 |
# File 'lib/pan_stuff/serializer/smart_hash_serializer.rb', line 6 def initialize(resource, meta: nil, message: nil, context: nil, root: true) super( check_type(resource), meta: , message: , context: context, root: root, ) end |