Class: Ladybug::Node

Inherits:
Object
  • Object
show all
Extended by:
Forwardable, Loggability
Defined in:
lib/ladybug/node.rb

Overview

Ladybug node class

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

The internal id value of the given node



32
33
34
# File 'lib/ladybug/node.rb', line 32

def id
  @id
end

#labelObject (readonly)

The label value of the given node



36
37
38
# File 'lib/ladybug/node.rb', line 36

def label
  @label
end

#propertiesObject (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