Class: Summoner::Configuration
- Inherits:
-
Object
- Object
- Summoner::Configuration
- Defined in:
- lib/summoner/configuration.rb
Instance Attribute Summary collapse
-
#cache_enabled ⇒ Object
Returns the value of attribute cache_enabled.
-
#cache_expires_in ⇒ Object
Returns the value of attribute cache_expires_in.
-
#cache_namespace ⇒ Object
Returns the value of attribute cache_namespace.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/summoner/configuration.rb', line 5 def initialize @cache_enabled = true @cache_namespace = 'summoner' @cache_expires_in = 1.hour end |
Instance Attribute Details
#cache_enabled ⇒ Object
Returns the value of attribute cache_enabled.
3 4 5 |
# File 'lib/summoner/configuration.rb', line 3 def cache_enabled @cache_enabled end |
#cache_expires_in ⇒ Object
Returns the value of attribute cache_expires_in.
3 4 5 |
# File 'lib/summoner/configuration.rb', line 3 def cache_expires_in @cache_expires_in end |
#cache_namespace ⇒ Object
Returns the value of attribute cache_namespace.
3 4 5 |
# File 'lib/summoner/configuration.rb', line 3 def cache_namespace @cache_namespace end |