Class: Cache::Object::Config
- Inherits:
-
Object
- Object
- Cache::Object::Config
- Defined in:
- lib/cache/object/config.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 9 10 11 |
# File 'lib/cache/object/config.rb', line 6 def initialize self.enabled = true self.ttl = 86400 self.adapter = nil self.cache = nil end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
4 5 6 |
# File 'lib/cache/object/config.rb', line 4 def adapter @adapter end |
#cache ⇒ Object
Returns the value of attribute cache.
4 5 6 |
# File 'lib/cache/object/config.rb', line 4 def cache @cache end |
#enabled ⇒ Object
Returns the value of attribute enabled.
4 5 6 |
# File 'lib/cache/object/config.rb', line 4 def enabled @enabled end |
#ttl ⇒ Object
Returns the value of attribute ttl.
4 5 6 |
# File 'lib/cache/object/config.rb', line 4 def ttl @ttl end |