Class: Neo4jBolt::Relationship
- Inherits:
-
Hash
- Object
- Hash
- Neo4jBolt::Relationship
- Defined in:
- lib/neo4j_bolt.rb
Instance Attribute Summary collapse
-
#element_id ⇒ Object
readonly
Returns the value of attribute element_id.
-
#end_node_element_id ⇒ Object
readonly
Returns the value of attribute end_node_element_id.
-
#end_node_id ⇒ Object
readonly
Returns the value of attribute end_node_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#start_node_element_id ⇒ Object
readonly
Returns the value of attribute start_node_element_id.
-
#start_node_id ⇒ Object
readonly
Returns the value of attribute start_node_id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(id, start_node_id, end_node_id, type, properties, element_id: nil, start_node_element_id: nil, end_node_element_id: nil) ⇒ Relationship
constructor
A new instance of Relationship.
Constructor Details
#initialize(id, start_node_id, end_node_id, type, properties, element_id: nil, start_node_element_id: nil, end_node_element_id: nil) ⇒ Relationship
Returns a new instance of Relationship.
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/neo4j_bolt.rb', line 37 def initialize(id, start_node_id, end_node_id, type, properties, element_id: nil, start_node_element_id: nil, end_node_element_id: nil) @id = id @start_node_id = start_node_id @end_node_id = end_node_id @type = type @element_id = element_id @start_node_element_id = start_node_element_id @end_node_element_id = end_node_element_id properties.each_pair { |key, value| self[key] = value } end |
Instance Attribute Details
#element_id ⇒ Object (readonly)
Returns the value of attribute element_id.
34 35 36 |
# File 'lib/neo4j_bolt.rb', line 34 def element_id @element_id end |
#end_node_element_id ⇒ Object (readonly)
Returns the value of attribute end_node_element_id.
34 35 36 |
# File 'lib/neo4j_bolt.rb', line 34 def end_node_element_id @end_node_element_id end |
#end_node_id ⇒ Object (readonly)
Returns the value of attribute end_node_id.
34 35 36 |
# File 'lib/neo4j_bolt.rb', line 34 def end_node_id @end_node_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
34 35 36 |
# File 'lib/neo4j_bolt.rb', line 34 def id @id end |
#start_node_element_id ⇒ Object (readonly)
Returns the value of attribute start_node_element_id.
34 35 36 |
# File 'lib/neo4j_bolt.rb', line 34 def start_node_element_id @start_node_element_id end |
#start_node_id ⇒ Object (readonly)
Returns the value of attribute start_node_id.
34 35 36 |
# File 'lib/neo4j_bolt.rb', line 34 def start_node_id @start_node_id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
34 35 36 |
# File 'lib/neo4j_bolt.rb', line 34 def type @type end |