Class: Mirah::Serializers::ScalarSerializer
- Inherits:
-
Object
- Object
- Mirah::Serializers::ScalarSerializer
- Defined in:
- lib/mirah/serializers.rb
Overview
A standard serializer which just passes through the value as defined. This is used for basic JSON types which have already been serialized correctly.
Instance Method Summary collapse
Instance Method Details
#deserialize(value) ⇒ Object
18 19 20 |
# File 'lib/mirah/serializers.rb', line 18 def deserialize(value) value end |
#serialize(value) ⇒ Object
14 15 16 |
# File 'lib/mirah/serializers.rb', line 14 def serialize(value) value end |