Class: Ladybug::Rel
- Inherits:
-
Object
- Object
- Ladybug::Rel
- Extended by:
- Forwardable, Loggability
- Defined in:
- lib/ladybug/rel.rb
Overview
Ladybug rel (relationship) class
Instance Attribute Summary collapse
-
#dst_id ⇒ Object
readonly
The internal id value of the destination node.
-
#id ⇒ Object
readonly
The internal id value of the given rel.
-
#label ⇒ Object
readonly
The label value of the given node.
-
#properties ⇒ Object
readonly
The Hash of the Rel's properties, keyed by name as a Symbol.
-
#src_id ⇒ Object
readonly
The internal id value of the source node.
Instance Method Summary collapse
-
#initialize(id, src_id, dst_id, label, **properties) ⇒ Rel
constructor
label, andproperties.
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_id ⇒ Object (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 |
#id ⇒ Object (readonly)
The internal id value of the given rel
35 36 37 |
# File 'lib/ladybug/rel.rb', line 35 def id @id end |
#label ⇒ Object (readonly)
The label value of the given node
47 48 49 |
# File 'lib/ladybug/rel.rb', line 47 def label @label end |
#properties ⇒ Object (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_id ⇒ Object (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 |