Class: Mementus::NodeBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/mementus/node_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, label = :node) ⇒ NodeBuilder

Returns a new instance of NodeBuilder.



5
6
7
8
# File 'lib/mementus/node_builder.rb', line 5

def initialize(id=nil, label=:node)
  @id = id
  @label = label
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/mementus/node_builder.rb', line 3

def id
  @id
end

#labelObject

Returns the value of attribute label.



3
4
5
# File 'lib/mementus/node_builder.rb', line 3

def label
  @label
end