Class: MindmeisterApi::NodeEnumerator

Inherits:
Object
  • Object
show all
Includes:
KLog::Logging
Defined in:
lib/mindmeister_api/models/node_enumerator.rb

Overview

Enumerate through the mind map hierarchy to build a list of nodes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mindmap) ⇒ NodeEnumerator

Returns a new instance of NodeEnumerator.



10
11
12
13
14
# File 'lib/mindmeister_api/models/node_enumerator.rb', line 10

def initialize(mindmap)
  @list = []

  add_node(mindmap)
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



8
9
10
# File 'lib/mindmeister_api/models/node_enumerator.rb', line 8

def list
  @list
end