Class: Ladybug::Rel

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

Overview

Ladybug rel (relationship) class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, src_id, dst_id, label, **properties) ⇒ Rel

label, and properties.



20
21
22
23
24
25
26
# File 'lib/ladybug/rel.rb', line 20

def initialize( id, src_id, dst_id, label, **properties )
	@id = id
	@src_id = src_id
	@dst_id = dst_id
	@label = label
	@properties = properties
end

Instance Attribute Details

#dst_idObject (readonly)

The internal id value of the destination node



43
44
45
# File 'lib/ladybug/rel.rb', line 43

def dst_id
  @dst_id
end

#idObject (readonly)

The internal id value of the given rel



35
36
37
# File 'lib/ladybug/rel.rb', line 35

def id
  @id
end

#labelObject (readonly)

The label value of the given node



47
48
49
# File 'lib/ladybug/rel.rb', line 47

def label
  @label
end

#propertiesObject (readonly)

The Hash of the Rel's properties, keyed by name as a Symbol



51
52
53
# File 'lib/ladybug/rel.rb', line 51

def properties
  @properties
end

#src_idObject (readonly)

The internal id value of the source node



39
40
41
# File 'lib/ladybug/rel.rb', line 39

def src_id
  @src_id
end