Class: Funky::GraphRootNode
- Inherits:
-
Object
- Object
- Funky::GraphRootNode
- Defined in:
- lib/funky/graph_root_node.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#id ⇒ String
The object ID.
-
#initialize(data) ⇒ GraphRootNode
constructor
A new instance of GraphRootNode.
Constructor Details
#initialize(data) ⇒ GraphRootNode
Returns a new instance of GraphRootNode.
5 6 7 |
# File 'lib/funky/graph_root_node.rb', line 5 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/funky/graph_root_node.rb', line 3 def data @data end |
Instance Method Details
#id ⇒ String
Returns the object ID.
10 11 12 |
# File 'lib/funky/graph_root_node.rb', line 10 def id data[:id] end |