Class: ActiveObject::Serialization::JsonSerializer

Inherits:
Serializer show all
Defined in:
lib/active_object/serializers/json_serializer.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Serializer

#options

Instance Method Summary collapse

Methods inherited from Serializer

#add_includes, #initialize, #serializable_attribute_names, #serializable_method_names, #serializable_names, #serializable_object, #to_s

Constructor Details

This class inherits a constructor from ActiveObject::Serialization::Serializer

Instance Method Details

#serializeObject



64
65
66
# File 'lib/active_object/serializers/json_serializer.rb', line 64

def serialize
  serializable_object.to_json
end