Class: Zikaron::Configuration
- Inherits:
-
Object
- Object
- Zikaron::Configuration
- Defined in:
- lib/zikaron.rb
Instance Attribute Summary collapse
-
#cache_name ⇒ Object
Returns the value of attribute cache_name.
-
#memory_duration ⇒ Object
Returns the value of attribute memory_duration.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_name ⇒ Object
Returns the value of attribute cache_name.
43 44 45 |
# File 'lib/zikaron.rb', line 43 def cache_name @cache_name end |
#memory_duration ⇒ Object
Returns the value of attribute memory_duration.
43 44 45 |
# File 'lib/zikaron.rb', line 43 def memory_duration @memory_duration end |
#redis_url ⇒ Object
Returns the value of attribute redis_url.
43 44 45 |
# File 'lib/zikaron.rb', line 43 def redis_url @redis_url end |