Class: UrlResolver::Configuration
- Inherits:
-
Object
- Object
- UrlResolver::Configuration
- Defined in:
- lib/url_resolver/configuration.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#cache_failures ⇒ Object
Returns the value of attribute cache_failures.
-
#url_cache ⇒ Object
readonly
Returns the value of attribute url_cache.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 |
# File 'lib/url_resolver/configuration.rb', line 6 def initialize @cache_failures = true @cache = nil @url_cache = Cache.new(@cache) end |
Instance Attribute Details
#cache ⇒ Object
Returns the value of attribute cache.
4 5 6 |
# File 'lib/url_resolver/configuration.rb', line 4 def cache @cache end |
#cache_failures ⇒ Object
Returns the value of attribute cache_failures.
3 4 5 |
# File 'lib/url_resolver/configuration.rb', line 3 def cache_failures @cache_failures end |
#url_cache ⇒ Object (readonly)
Returns the value of attribute url_cache.
4 5 6 |
# File 'lib/url_resolver/configuration.rb', line 4 def url_cache @url_cache end |