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, element_id: nil, start_node_element_id: nil, end_node_element_id: nil) ⇒ Relationship

Returns a new instance of Relationship.



232
233
234
235
236
237
238
239
240
241
242
# File 'lib/neo4j_bolt.rb', line 232

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

Returns the value of attribute element_id.



229
230
231
# File 'lib/neo4j_bolt.rb', line 229

def element_id
  @element_id
end

#end_node_element_idObject (readonly)

Returns the value of attribute end_node_element_id.



229
230
231
# File 'lib/neo4j_bolt.rb', line 229

def end_node_element_id
  @end_node_element_id
end

#end_node_idObject (readonly)

Returns the value of attribute end_node_id.



229
230
231
# File 'lib/neo4j_bolt.rb', line 229

def end_node_id
  @end_node_id
end

#idObject (readonly)

Returns the value of attribute id.



229
230
231
# File 'lib/neo4j_bolt.rb', line 229

def id
  @id
end

#start_node_element_idObject (readonly)

Returns the value of attribute start_node_element_id.



229
230
231
# File 'lib/neo4j_bolt.rb', line 229

def start_node_element_id
  @start_node_element_id
end

#start_node_idObject (readonly)

Returns the value of attribute start_node_id.



229
230
231
# File 'lib/neo4j_bolt.rb', line 229

def start_node_id
  @start_node_id
end

#typeObject (readonly)

Returns the value of attribute type.



229
230
231
# File 'lib/neo4j_bolt.rb', line 229

def type
  @type
end