Class: Zikaron::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/zikaron.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



45
46
47
48
49
# File 'lib/zikaron.rb', line 45

def initialize
  self.redis_url        ||= 'redis://localhost:6379/'
  self.memory_duration  ||= 60
  self.cache_name       ||= 'zikaron'
end

Instance Attribute Details

#cache_nameObject

Returns the value of attribute cache_name.



43
44
45
# File 'lib/zikaron.rb', line 43

def cache_name
  @cache_name
end

#memory_durationObject

Returns the value of attribute memory_duration.



43
44
45
# File 'lib/zikaron.rb', line 43

def memory_duration
  @memory_duration
end

#redis_urlObject

Returns the value of attribute redis_url.



43
44
45
# File 'lib/zikaron.rb', line 43

def redis_url
  @redis_url
end