Class: Neo4jBolt::Node
- Inherits:
-
Hash
- Object
- Hash
- Neo4jBolt::Node
- Defined in:
- lib/neo4j_bolt.rb
Instance Attribute Summary collapse
-
#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) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(id, labels, properties) ⇒ Node
Returns a new instance of Node.
258 259 260 261 262 |
# File 'lib/neo4j_bolt.rb', line 258 def initialize(id, labels, properties) @id = id @labels = labels properties.each_pair { |k, v| self[k] = v } end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
263 264 265 |
# File 'lib/neo4j_bolt.rb', line 263 def id @id end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
263 264 265 |
# File 'lib/neo4j_bolt.rb', line 263 def labels @labels end |