Class: Cache::Object::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/cache/object/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#adapterObject

Returns the value of attribute adapter.



4
5
6
# File 'lib/cache/object/config.rb', line 4

def adapter
  @adapter
end

#cacheObject

Returns the value of attribute cache.



4
5
6
# File 'lib/cache/object/config.rb', line 4

def cache
  @cache
end

#enabledObject

Returns the value of attribute enabled.



4
5
6
# File 'lib/cache/object/config.rb', line 4

def enabled
  @enabled
end

#ttlObject

Returns the value of attribute ttl.



4
5
6
# File 'lib/cache/object/config.rb', line 4

def ttl
  @ttl
end