Class: Neo4jBolt::Relationship
- Inherits:
-
Hash
- Object
- Hash
- Neo4jBolt::Relationship
- Defined in:
- lib/neo4j_bolt.rb
Instance Attribute Summary collapse
-
#end_node_id ⇒ Object
readonly
Returns the value of attribute end_node_id.
-
#id ⇒ Object
readonly
Returns the value of attribute 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) ⇒ Relationship
constructor
A new instance of Relationship.
Constructor Details
#initialize(id, start_node_id, end_node_id, type, properties) ⇒ Relationship
Returns a new instance of Relationship.
267 268 269 270 271 272 273 |
# File 'lib/neo4j_bolt.rb', line 267 def initialize(id, start_node_id, end_node_id, type, properties) @id = id @start_node_id = start_node_id @end_node_id = end_node_id @type = type properties.each_pair { |k, v| self[k] = v } end |
Instance Attribute Details
#end_node_id ⇒ Object (readonly)
Returns the value of attribute end_node_id.
275 276 277 |
# File 'lib/neo4j_bolt.rb', line 275 def end_node_id @end_node_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
275 276 277 |
# File 'lib/neo4j_bolt.rb', line 275 def id @id end |
#start_node_id ⇒ Object (readonly)
Returns the value of attribute start_node_id.
275 276 277 |
# File 'lib/neo4j_bolt.rb', line 275 def start_node_id @start_node_id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
275 276 277 |
# File 'lib/neo4j_bolt.rb', line 275 def type @type end |