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, :server => 'localhost' } })
Instance Method Summary collapse
Instance Method Details
#[](val) ⇒ Object
24 25 26 |
# File 'lib/hashpipe/global_configuration.rb', line 24 def [](val) config[val] end |
#to_hash ⇒ Object
28 29 30 |
# File 'lib/hashpipe/global_configuration.rb', line 28 def to_hash config end |
#to_s ⇒ Object
32 33 34 |
# File 'lib/hashpipe/global_configuration.rb', line 32 def to_s config.inspect end |