Class: Amanzi::SLD::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/amanzi/sld.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Config

Returns a new instance of Config.



24
25
26
# File 'lib/amanzi/sld.rb', line 24

def initialize(options={})
  @settings = options
end

Instance Attribute Details

#settingsObject

Returns the value of attribute settings.



20
21
22
# File 'lib/amanzi/sld.rb', line 20

def settings
  @settings
end

Class Method Details

.config(options = {}) ⇒ Object



21
22
23
# File 'lib/amanzi/sld.rb', line 21

def self.config(options={})
  @@instance ||= Config.new(options)
end

Instance Method Details

#[](key) ⇒ Object



30
31
32
# File 'lib/amanzi/sld.rb', line 30

def [](key)
  settings[key]
end

#[]=(key, value) ⇒ Object



27
28
29
# File 'lib/amanzi/sld.rb', line 27

def []=(key,value)
  settings[key] = value
end