Class: Granola::Helper::NilClassSerializer

Inherits:
Serializer
  • Object
show all
Defined in:
lib/granola/helper.rb

Overview

Internal: Null serializer that transparently handles rendering `nil` in case it's passed.

Instance Attribute Summary

Attributes inherited from Serializer

#object

Instance Method Summary collapse

Methods inherited from Serializer

#initialize, list, #mime_type, #to_json

Methods included from Caching

#cache_key, #last_modified

Methods included from Serializer::Schema

included, #valid?, #validation_errors

Constructor Details

This class inherits a constructor from Granola::Serializer

Instance Method Details

#attributesObject


44
45
46
# File 'lib/granola/helper.rb', line 44

def attributes
  {}
end