Class: MindmeisterApi::NodeEnumerator
- Inherits:
-
Object
- Object
- MindmeisterApi::NodeEnumerator
- 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
-
#list ⇒ Object
readonly
Returns the value of attribute list.
Instance Method Summary collapse
-
#initialize(mindmap) ⇒ NodeEnumerator
constructor
A new instance of NodeEnumerator.
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
#list ⇒ Object (readonly)
Returns the value of attribute list.
8 9 10 |
# File 'lib/mindmeister_api/models/node_enumerator.rb', line 8 def list @list end |