Class: Representable::Serializer::Hash

Inherits:
Representable::Serializer show all
Defined in:
lib/representable/serializer.rb

Instance Method Summary collapse

Methods inherited from Representable::Serializer

#call

Methods inherited from Deserializer

#call, #initialize

Constructor Details

This class inherits a constructor from Representable::Deserializer

Instance Method Details

#serialize(hash, *args) ⇒ Object



51
52
53
54
55
# File 'lib/representable/serializer.rb', line 51

def serialize(hash, *args)
  {}.tap do |hsh|
    hash.each { |key, obj| hsh[key] = super(obj, *args) }
  end
end