Class: ApplicationSerializer::CachedFragment
- Inherits:
-
Object
- Object
- ApplicationSerializer::CachedFragment
- Defined in:
- app/serializers/application_serializer.rb
Instance Method Summary collapse
- #as_json(*_args) ⇒ Object
-
#initialize(json) ⇒ CachedFragment
constructor
A new instance of CachedFragment.
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
13 14 15 |
# File 'app/serializers/application_serializer.rb', line 13 def as_json(*_args) @json end |