Class: Mementus::Node
- Inherits:
-
Object
- Object
- Mementus::Node
- Defined in:
- lib/mementus/node.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(id = nil, label = :node) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(id = nil, label = :node) ⇒ Node
Returns a new instance of Node.
5 6 7 8 |
# File 'lib/mementus/node.rb', line 5 def initialize(id=nil, label=:node) @id = id @label = label end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/mementus/node.rb', line 3 def id @id end |
#label ⇒ Object
Returns the value of attribute label.
3 4 5 |
# File 'lib/mementus/node.rb', line 3 def label @label end |