Class: ApplicationSerializer::CachedFragment

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

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CachedFragment

Returns a new instance of CachedFragment.



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

def initialize(json)
  @json = json
end

Instance Method Details

#as_json(*_args) ⇒ Object



12
13
14
# File 'app/serializers/application_serializer.rb', line 12

def as_json(*_args)
  @json
end