Class: SimpleFileCache::Configuration
- Inherits:
-
Object
- Object
- SimpleFileCache::Configuration
- Defined in:
- lib/simple_file_cache.rb
Instance Attribute Summary collapse
-
#cache_dir_path ⇒ Object
Returns the value of attribute cache_dir_path.
-
#cache_expiration_policy ⇒ Object
Returns the value of attribute cache_expiration_policy.
-
#cache_max_age_in_seconds ⇒ Object
Returns the value of attribute cache_max_age_in_seconds.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
51 52 53 54 55 |
# File 'lib/simple_file_cache.rb', line 51 def initialize @cache_dir_path = '.' @cache_expiration_policy = :yesterday_or_earlier # :max_age @cache_max_age_in_seconds = nil end |
Instance Attribute Details
#cache_dir_path ⇒ Object
Returns the value of attribute cache_dir_path.
49 50 51 |
# File 'lib/simple_file_cache.rb', line 49 def cache_dir_path @cache_dir_path end |
#cache_expiration_policy ⇒ Object
Returns the value of attribute cache_expiration_policy.
49 50 51 |
# File 'lib/simple_file_cache.rb', line 49 def cache_expiration_policy @cache_expiration_policy end |
#cache_max_age_in_seconds ⇒ Object
Returns the value of attribute cache_max_age_in_seconds.
49 50 51 |
# File 'lib/simple_file_cache.rb', line 49 def cache_max_age_in_seconds @cache_max_age_in_seconds end |