Class: AnalyticsGenericSerializer

Inherits:
BaseSerializer show all
Defined in:
app/serializers/analytics_generic_serializer.rb

Instance Attribute Summary

Attributes inherited from BaseSerializer

#params

Instance Method Summary collapse

Methods inherited from BaseSerializer

entity, #initialize

Constructor Details

This class inherits a constructor from BaseSerializer

Instance Method Details

#represent(resource, opts = {}) ⇒ Object


4
5
6
7
8
# File 'app/serializers/analytics_generic_serializer.rb', line 4

def represent(resource, opts = {})
  resource.symbolize_keys!

  super(resource, opts)
end