Class: Neo4jBolt::Relationship

Inherits:
Hash
  • Object
show all
Defined in:
lib/neo4j_bolt.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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

#idObject (readonly)

Returns the value of attribute id.



275
276
277
# File 'lib/neo4j_bolt.rb', line 275

def id
  @id
end

#start_node_idObject (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

#typeObject (readonly)

Returns the value of attribute type.



275
276
277
# File 'lib/neo4j_bolt.rb', line 275

def type
  @type
end