Class: Carbonyte::ApplicationSerializer

Inherits:
Object
  • Object
show all
Includes:
JSONAPI::Serializer
Defined in:
app/serializers/carbonyte/application_serializer.rb

Overview

Carbonyte base class for all serializers

Instance Method Summary collapse

Constructor Details

#initialize(resource, options = {}) ⇒ ApplicationSerializer

Initializes the serializer.

Parameters:

  • resource (Object)

    the resource(s) to serialize

  • options (Hash) (defaults to: {})

    the serializer options.

See Also:



12
13
14
15
# File 'app/serializers/carbonyte/application_serializer.rb', line 12

def initialize(resource, options = {})
  parse_options(resource, options)
  super
end