Class: EasySerializer::Cacher::Template

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/easy_serializer/cacher/template.rb

Direct Known Subclasses

Collection, Method, Serializer

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helpers

#option_to_value

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

#metadataObject (readonly)

Returns the value of attribute metadata.



5
6
7
# File 'lib/easy_serializer/cacher/template.rb', line 5

def 
  @metadata
end

#serializerObject (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