Class: HashPipe::GlobalConfiguration
- Inherits:
-
Object
- Object
- HashPipe::GlobalConfiguration
- Includes:
- Singleton
- Defined in:
- lib/hashpipe/global_configuration.rb
Overview
Singleton class for reading the defaults archived attribute configuration for this environment.
Constant Summary collapse
- DEFAULTS =
HashWithIndifferentAccess.new({ :storage => 'filesystem', :marshal => false, :compress => false, :s3 => { :protocol => 'https' }, :filesystem => { :archive_root => nil }, :memcache => { :port => 1978 } })
Instance Method Summary collapse
Instance Method Details
#[](val) ⇒ Object
23 24 25 |
# File 'lib/hashpipe/global_configuration.rb', line 23 def [](val) config[val] end |
#to_hash ⇒ Object
27 28 29 |
# File 'lib/hashpipe/global_configuration.rb', line 27 def to_hash config end |
#to_s ⇒ Object
31 32 33 |
# File 'lib/hashpipe/global_configuration.rb', line 31 def to_s config.inspect end |