Class: DecisionAgent::Dmn::Feel::Types::Context
- Inherits:
-
Hash
- Object
- Hash
- DecisionAgent::Dmn::Feel::Types::Context
- Defined in:
- lib/decision_agent/dmn/feel/types.rb
Overview
Wrapper for contexts (FEEL key-value maps)
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Context
constructor
A new instance of Context.
- #inspect ⇒ Object
- #to_ruby ⇒ Object
Constructor Details
#initialize(hash = {}) ⇒ Context
236 237 238 239 |
# File 'lib/decision_agent/dmn/feel/types.rb', line 236 def initialize(hash = {}) super() hash.each { |k, v| self[k.to_sym] = v } end |
Instance Method Details
#inspect ⇒ Object
245 246 247 |
# File 'lib/decision_agent/dmn/feel/types.rb', line 245 def inspect "#<Feel::Context #{to_h.inspect}>" end |
#to_ruby ⇒ Object
241 242 243 |
# File 'lib/decision_agent/dmn/feel/types.rb', line 241 def to_ruby to_h end |