Class: OpenStruct

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_proxy_dynflow_core/settings.rb

Direct Known Subclasses

SmartProxyDynflowCore::Settings

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



6
7
8
# File 'lib/smart_proxy_dynflow_core/settings.rb', line 6

def [](key)
  self.send key
end

#[]=(key, value) ⇒ Object



10
11
12
# File 'lib/smart_proxy_dynflow_core/settings.rb', line 10

def []=(key, value)
  self.send "#{key}=", value
end

#to_hObject



14
15
16
# File 'lib/smart_proxy_dynflow_core/settings.rb', line 14

def to_h
  marshal_dump
end