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.
254 255 256 257 258 259 260 261 262 263 264 |
# File 'lib/neo4j_bolt.rb', line 254 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.
251 252 253 |
# File 'lib/neo4j_bolt.rb', line 251 def element_id @element_id end |
#end_node_element_id ⇒ Object (readonly)
Returns the value of attribute end_node_element_id.
251 252 253 |
# File 'lib/neo4j_bolt.rb', line 251 def end_node_element_id @end_node_element_id end |
#end_node_id ⇒ Object (readonly)
Returns the value of attribute end_node_id.
251 252 253 |
# File 'lib/neo4j_bolt.rb', line 251 def end_node_id @end_node_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
251 252 253 |
# File 'lib/neo4j_bolt.rb', line 251 def id @id end |
#start_node_element_id ⇒ Object (readonly)
Returns the value of attribute start_node_element_id.
251 252 253 |
# File 'lib/neo4j_bolt.rb', line 251 def start_node_element_id @start_node_element_id end |
#start_node_id ⇒ Object (readonly)
Returns the value of attribute start_node_id.
251 252 253 |
# File 'lib/neo4j_bolt.rb', line 251 def start_node_id @start_node_id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
251 252 253 |
# File 'lib/neo4j_bolt.rb', line 251 def type @type end |