Class: Ladybug::Node
- Inherits:
-
Object
- Object
- Ladybug::Node
- Extended by:
- Forwardable, Loggability
- Defined in:
- lib/ladybug/node.rb
Overview
Ladybug node class
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
The internal id value of the given node.
-
#label ⇒ Object
readonly
The label value of the given node.
-
#properties ⇒ Object
readonly
The Hash of the Node's properties, keyed by name as a Symbol.
Instance Method Summary collapse
-
#initialize(id, label, **properties) ⇒ Node
constructor
Create a new Node with the given
id,label, andproperties.
Constructor Details
#initialize(id, label, **properties) ⇒ Node
Create a new Node with the given id, label, and properties.
19 20 21 22 23 |
# File 'lib/ladybug/node.rb', line 19 def initialize( id, label, **properties ) @id = id @label = label @properties = properties end |
Instance Attribute Details
#id ⇒ Object (readonly)
The internal id value of the given node
32 33 34 |
# File 'lib/ladybug/node.rb', line 32 def id @id end |
#label ⇒ Object (readonly)
The label value of the given node
36 37 38 |
# File 'lib/ladybug/node.rb', line 36 def label @label end |
#properties ⇒ Object (readonly)
The Hash of the Node's properties, keyed by name as a Symbol
40 41 42 |
# File 'lib/ladybug/node.rb', line 40 def properties @properties end |