Class: Dionysus::Producer::DeletedRecordSerializer

Inherits:
ModelSerializer show all
Defined in:
lib/dionysus/producer/deleted_record_serializer.rb

Instance Method Summary collapse

Methods inherited from ModelSerializer

attribute, attributes, declared_attributes, declared_to_many_relationships, declared_to_one_relationships, has_many, has_one, #initialize

Constructor Details

This class inherits a constructor from Dionysus::Producer::ModelSerializer

Instance Method Details

#as_jsonObject



4
5
6
# File 'lib/dionysus/producer/deleted_record_serializer.rb', line 4

def as_json
  super.merge(primary_key => primary_key_value)
end