Class: ApplicationSerializer

Inherits:
Object
  • Object
show all
Defined in:
app/serializers/application_serializer.rb

Direct Known Subclasses

AssociationSerializer, ModelSerializer

Instance Method Summary collapse

Instance Method Details

#to_hObject

Raises:

  • (NotImplementedError)


4
5
6
# File 'app/serializers/application_serializer.rb', line 4

def to_h
  raise NotImplementedError
end

#to_jsonObject



8
9
10
# File 'app/serializers/application_serializer.rb', line 8

def to_json(*)
  to_h.to_json
end