Class: Tailmix::Definition::Result::Context

Inherits:
Struct
  • Object
show all
Defined in:
lib/tailmix/definition/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionsObject

Returns the value of attribute actions

Returns:

  • (Object)

    the current value of actions



6
7
8
# File 'lib/tailmix/definition/result.rb', line 6

def actions
  @actions
end

#elementsObject

Returns the value of attribute elements

Returns:

  • (Object)

    the current value of elements



6
7
8
# File 'lib/tailmix/definition/result.rb', line 6

def elements
  @elements
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/tailmix/definition/result.rb', line 6

def name
  @name
end

#pluginsObject

Returns the value of attribute plugins

Returns:

  • (Object)

    the current value of plugins



6
7
8
# File 'lib/tailmix/definition/result.rb', line 6

def plugins
  @plugins
end

#reactionsObject

Returns the value of attribute reactions

Returns:

  • (Object)

    the current value of reactions



6
7
8
# File 'lib/tailmix/definition/result.rb', line 6

def reactions
  @reactions
end

#statesObject

Returns the value of attribute states

Returns:

  • (Object)

    the current value of states



6
7
8
# File 'lib/tailmix/definition/result.rb', line 6

def states
  @states
end

Instance Method Details

#to_hObject



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