Class: Tailmix::Definition::Result::Context
- Inherits:
-
Struct
- Object
- Struct
- Tailmix::Definition::Result::Context
- Defined in:
- lib/tailmix/definition/result.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#elements ⇒ Object
Returns the value of attribute elements.
-
#name ⇒ Object
Returns the value of attribute name.
-
#plugins ⇒ Object
Returns the value of attribute plugins.
-
#reactions ⇒ Object
Returns the value of attribute reactions.
-
#states ⇒ Object
Returns the value of attribute states.
Instance Method Summary collapse
Instance Attribute Details
#actions ⇒ Object
Returns the value of attribute actions
6 7 8 |
# File 'lib/tailmix/definition/result.rb', line 6 def actions @actions end |
#elements ⇒ Object
Returns the value of attribute elements
6 7 8 |
# File 'lib/tailmix/definition/result.rb', line 6 def elements @elements end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/tailmix/definition/result.rb', line 6 def name @name end |
#plugins ⇒ Object
Returns the value of attribute plugins
6 7 8 |
# File 'lib/tailmix/definition/result.rb', line 6 def plugins @plugins end |
#reactions ⇒ Object
Returns the value of attribute reactions
6 7 8 |
# File 'lib/tailmix/definition/result.rb', line 6 def reactions @reactions end |
#states ⇒ Object
Returns the value of attribute states
6 7 8 |
# File 'lib/tailmix/definition/result.rb', line 6 def states @states end |
Instance Method Details
#to_h ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/tailmix/definition/result.rb', line 7 def to_h { name: name, states: states, actions: actions.transform_values(&:to_h), elements: elements.transform_values(&:to_h), plugins: plugins, reactions: reactions } end |