Class: Neo4jBolt::Node
- Inherits:
-
Hash
- Object
- Hash
- Neo4jBolt::Node
- Defined in:
- lib/neo4j_bolt.rb
Instance Attribute Summary collapse
-
#element_id ⇒ Object
readonly
Returns the value of attribute element_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
Instance Method Summary collapse
-
#initialize(id, labels, properties, element_id: nil) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(id, labels, properties, element_id: nil) ⇒ Node
Returns a new instance of Node.
220 221 222 223 224 225 |
# File 'lib/neo4j_bolt.rb', line 220 def initialize(id, labels, properties, element_id: nil) @id = id @labels = labels @element_id = 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.
218 219 220 |
# File 'lib/neo4j_bolt.rb', line 218 def element_id @element_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
218 219 220 |
# File 'lib/neo4j_bolt.rb', line 218 def id @id end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
218 219 220 |
# File 'lib/neo4j_bolt.rb', line 218 def labels @labels end |