Class: Cuprum::Rails::Serializers::Json::IdentitySerializer
- Inherits:
-
BaseSerializer
- Object
- BaseSerializer
- Cuprum::Rails::Serializers::Json::IdentitySerializer
- Defined in:
- lib/cuprum/rails/serializers/json/identity_serializer.rb
Overview
Serializer that returns a value object as itself.
Instance Method Summary collapse
-
#call(object, **_) ⇒ Object
Returns the object.
Methods inherited from BaseSerializer
Instance Method Details
#call(object, **_) ⇒ Object
Returns the object.
This serializer should only be used with value objects: nil, true, false, Integers, Floats, and Strings.
17 18 19 |
# File 'lib/cuprum/rails/serializers/json/identity_serializer.rb', line 17 def call(object, **_) object end |