Class: Howkast::Configuration
- Inherits:
-
Object
- Object
- Howkast::Configuration
- Includes:
- Singleton
- Defined in:
- lib/howkast/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#cache_location ⇒ Object
Returns the value of attribute cache_location.
-
#cache_store ⇒ Object
Returns the value of attribute cache_store.
-
#cache_timeout ⇒ Object
Returns the value of attribute cache_timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 |
# File 'lib/howkast/configuration.rb', line 11 def initialize @cache_timeout = 600 @cache_location = '/tmp/howkast/cache' @cache_store = 'file' end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/howkast/configuration.rb', line 6 def api_key @api_key end |
#cache_location ⇒ Object
Returns the value of attribute cache_location.
8 9 10 |
# File 'lib/howkast/configuration.rb', line 8 def cache_location @cache_location end |
#cache_store ⇒ Object
Returns the value of attribute cache_store.
9 10 11 |
# File 'lib/howkast/configuration.rb', line 9 def cache_store @cache_store end |
#cache_timeout ⇒ Object
Returns the value of attribute cache_timeout.
7 8 9 |
# File 'lib/howkast/configuration.rb', line 7 def cache_timeout @cache_timeout end |