Class: ContainerEnv::Configuration
- Inherits:
-
Object
- Object
- ContainerEnv::Configuration
- Defined in:
- lib/container_env/configuration.rb
Overview
:nodoc:
Constant Summary collapse
- DEFAULT_TTL =
600- DEFAULT_MAX_SIZE =
256
Instance Attribute Summary collapse
-
#cache_enabled ⇒ Object
writeonly
Sets the attribute cache_enabled.
-
#cache_max_size ⇒ Object
Returns the value of attribute cache_max_size.
-
#cache_ttl ⇒ Object
Returns the value of attribute cache_ttl.
Instance Method Summary collapse
- #cache_enabled? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 |
# File 'lib/container_env/configuration.rb', line 12 def initialize @cache_enabled = false @cache_ttl = DEFAULT_TTL @cache_max_size = DEFAULT_MAX_SIZE end |
Instance Attribute Details
#cache_enabled=(value) ⇒ Object (writeonly)
Sets the attribute cache_enabled
10 11 12 |
# File 'lib/container_env/configuration.rb', line 10 def cache_enabled=(value) @cache_enabled = value end |
#cache_max_size ⇒ Object
Returns the value of attribute cache_max_size.
9 10 11 |
# File 'lib/container_env/configuration.rb', line 9 def cache_max_size @cache_max_size end |
#cache_ttl ⇒ Object
Returns the value of attribute cache_ttl.
9 10 11 |
# File 'lib/container_env/configuration.rb', line 9 def cache_ttl @cache_ttl end |
Instance Method Details
#cache_enabled? ⇒ Boolean
18 19 20 |
# File 'lib/container_env/configuration.rb', line 18 def cache_enabled? @cache_enabled end |