Class: EasySerializer::Cacher::Template
- Inherits:
-
Object
- Object
- EasySerializer::Cacher::Template
- Includes:
- Helpers
- Defined in:
- lib/easy_serializer/cacher/template.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#serializer ⇒ Object
readonly
Returns the value of attribute serializer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(serializer, metadata) ⇒ Template
constructor
A new instance of Template.
Methods included from Helpers
Constructor Details
#initialize(serializer, metadata) ⇒ Template
Returns a new instance of Template.
7 8 9 10 |
# File 'lib/easy_serializer/cacher/template.rb', line 7 def initialize(serializer, ) @serializer = serializer @metadata = end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/easy_serializer/cacher/template.rb', line 5 def @metadata end |
#serializer ⇒ Object (readonly)
Returns the value of attribute serializer.
5 6 7 |
# File 'lib/easy_serializer/cacher/template.rb', line 5 def serializer @serializer end |
Class Method Details
.call(*args) ⇒ Object
12 13 14 |
# File 'lib/easy_serializer/cacher/template.rb', line 12 def self.call(*args) new(*args).execute end |