class Cuprum::Rails::Serializers::Json::IdentitySerializer
Serializer
that returns a value object as itself.
Public Instance Methods
call(object, **_)
click to toggle source
Returns the object.
This serializer should only be used with value objects: nil, true, false, Integers, Floats, and Strings.
@param object [Object] The object to convert to JSON.
@return [Object] a JSON-compatible Hash representation of the object.
# File lib/cuprum/rails/serializers/json/identity_serializer.rb, line 17 def call(object, **_) object end