Class: EasySerializer::Cacher
- Inherits:
-
Object
- Object
- EasySerializer::Cacher
- Defined in:
- lib/easy_serializer/cacher.rb,
lib/easy_serializer/cacher/method.rb,
lib/easy_serializer/cacher/template.rb,
lib/easy_serializer/cacher/collection.rb,
lib/easy_serializer/cacher/serializer.rb
Defined Under Namespace
Classes: Collection, Method, Serializer, Template
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#serializer ⇒ Object
readonly
Returns the value of attribute serializer.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(serializer, metadata) ⇒ Cacher
constructor
A new instance of Cacher.
Constructor Details
#initialize(serializer, metadata) ⇒ Cacher
Returns a new instance of Cacher.
4 5 6 7 |
# File 'lib/easy_serializer/cacher.rb', line 4 def initialize(serializer, ) @serializer = serializer @metadata = end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
3 4 5 |
# File 'lib/easy_serializer/cacher.rb', line 3 def @metadata end |
#serializer ⇒ Object (readonly)
Returns the value of attribute serializer.
3 4 5 |
# File 'lib/easy_serializer/cacher.rb', line 3 def serializer @serializer end |
Instance Method Details
#execute ⇒ Object
9 10 11 |
# File 'lib/easy_serializer/cacher.rb', line 9 def execute CacheOutput.new(_execute) end |