Class: Mementus::NodeBuilder

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

Instance Attribute Summary

Attributes included from ElementBuilder

#id, #label

Instance Method Summary collapse

Methods included from ElementBuilder

#[]=, #props, #props=

Instance Method Details

#to_nodeObject



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

def to_node
  Node.new(id: id, label: label, props: props)
end