Class: CustomFragmentCache::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/custom_fragment_cache/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#enabledObject

Returns the value of attribute enabled.



3
4
5
# File 'lib/custom_fragment_cache/configuration.rb', line 3

def enabled
  @enabled
end

#expiration_timeObject

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