Class: Neoon::Cypher::InstanceQuery
- Inherits:
-
Object
- Object
- Neoon::Cypher::InstanceQuery
- Includes:
- Node::Operations
- Defined in:
- lib/neoon/cypher/instance_query.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(object) ⇒ InstanceQuery
constructor
A new instance of InstanceQuery.
Methods included from Node::Operations
#delete_node, #find_node, #save_node
Constructor Details
#initialize(object) ⇒ InstanceQuery
Returns a new instance of InstanceQuery.
7 8 9 10 11 |
# File 'lib/neoon/cypher/instance_query.rb', line 7 def initialize(object) @id = object.id @label = object.class.name @args = object.neo_node_properties.merge(:_id => id) end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
5 6 7 |
# File 'lib/neoon/cypher/instance_query.rb', line 5 def args @args end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/neoon/cypher/instance_query.rb', line 5 def id @id end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
5 6 7 |
# File 'lib/neoon/cypher/instance_query.rb', line 5 def label @label end |