Class: CustomFragmentCache::Configuration
- Inherits:
-
Object
- Object
- CustomFragmentCache::Configuration
- Defined in:
- lib/custom_fragment_cache/configuration.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#expiration_time ⇒ Object
Returns the value of attribute expiration_time.
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 |
# File 'lib/custom_fragment_cache/configuration.rb', line 5 def initialize @enabled = true @expiration_time = 1.hour end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
3 4 5 |
# File 'lib/custom_fragment_cache/configuration.rb', line 3 def enabled @enabled end |
#expiration_time ⇒ Object
Returns the value of attribute expiration_time.
3 4 5 |
# File 'lib/custom_fragment_cache/configuration.rb', line 3 def expiration_time @expiration_time end |