Class: HashPipe::GlobalConfiguration

Inherits:
Object
  • Object
show all
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({
  :moneta_klass => 'Moneta::Memory',
  :marshal      => false,
  :compress     => false
})

Instance Method Summary collapse

Instance Method Details

#[](val) ⇒ Object



14
15
16
# File 'lib/hashpipe/global_configuration.rb', line 14

def [](val)
  config[val]
end

#to_hashObject



18
19
20
# File 'lib/hashpipe/global_configuration.rb', line 18

def to_hash
  config
end

#to_sObject



22
23
24
# File 'lib/hashpipe/global_configuration.rb', line 22

def to_s
  config.inspect
end