Class: ContainerEnv::Configuration

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

Overview

:nodoc:

Constant Summary collapse

DEFAULT_TTL =
600
DEFAULT_MAX_SIZE =
256

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

Parameters:

  • value

    the value to set the attribute cache_enabled to.



10
11
12
# File 'lib/container_env/configuration.rb', line 10

def cache_enabled=(value)
  @cache_enabled = value
end

#cache_max_sizeObject

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_ttlObject

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

Returns:

  • (Boolean)


18
19
20
# File 'lib/container_env/configuration.rb', line 18

def cache_enabled?
  @cache_enabled
end