Class: Gorynich::Configuration
- Inherits:
-
Object
- Object
- Gorynich::Configuration
- Defined in:
- lib/gorynich/configuration.rb
Defined Under Namespace
Classes: NullStore
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#cache_expiration ⇒ Object
Returns the value of attribute cache_expiration.
-
#fetcher ⇒ Object
Returns the value of attribute fetcher.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#rack_env_handler ⇒ Object
Returns the value of attribute rack_env_handler.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 22 23 24 |
# File 'lib/gorynich/configuration.rb', line 18 def initialize @cache = NullStore.new @fetcher = nil @namespace = nil @cache_expiration = 30 @rack_env_handler = nil end |
Instance Attribute Details
#cache ⇒ Object
Returns the value of attribute cache.
12 13 14 |
# File 'lib/gorynich/configuration.rb', line 12 def cache @cache end |
#cache_expiration ⇒ Object
Returns the value of attribute cache_expiration.
12 13 14 |
# File 'lib/gorynich/configuration.rb', line 12 def cache_expiration @cache_expiration end |
#fetcher ⇒ Object
Returns the value of attribute fetcher.
12 13 14 |
# File 'lib/gorynich/configuration.rb', line 12 def fetcher @fetcher end |
#namespace ⇒ Object
Returns the value of attribute namespace.
12 13 14 |
# File 'lib/gorynich/configuration.rb', line 12 def namespace @namespace end |
#rack_env_handler ⇒ Object
Returns the value of attribute rack_env_handler.
12 13 14 |
# File 'lib/gorynich/configuration.rb', line 12 def rack_env_handler @rack_env_handler end |