abstract class JSONApiSerializer::ResourceSerializer(T)

Included Modules

Defined in:

jsonapi-serializer-cr/resource_serializer.cr

Constant Summary

ATTR_MACROS = ["identifier", "attribute", "relationship"]

Constructors

Instance Method Summary

Macro Summary

Instance methods inherited from module JSONApiSerializer::Serializer(T)

deserialize(json : String, base : T | Nil = nil) : T | Nil
deserialize(value : JSON::Any, base : T | Nil = nil) : T | Nil
deserialize
, serialize(entity : T | Nil) : String | Nil serialize

Constructor Detail

def self.new(options : SerializeOptions | Nil = nil) #

[View source]

Instance Method Detail

def change_case(name : String) : String #

[View source]
abstract def get_type : String #

[View source]
def options : SerializeOptions #

[View source]
def options=(v : SerializeOptions) #

[View source]

Macro Detail

macro generate_inherited_macros #

[View source]
macro generate_methods #

[View source]