Class: SportsManager::SolutionDrawer::Mermaid::SolutionGraph::LinkNode

Inherits:
Struct
  • Object
show all
Defined in:
lib/sports_manager/solution_drawer/mermaid/solution_graph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#node_hashObject

Returns the value of attribute node_hash

Returns:

  • (Object)

    the current value of node_hash



11
12
13
# File 'lib/sports_manager/solution_drawer/mermaid/solution_graph.rb', line 11

def node_hash
  @node_hash
end

Instance Method Details

#definitionObject



12
13
14
# File 'lib/sports_manager/solution_drawer/mermaid/solution_graph.rb', line 12

def definition
  "#{node_hash[:previous_name]} --> #{node_hash[:next_name]}"
end