Class: Neoon::Cypher::InstanceQuery

Inherits:
Object
  • Object
show all
Includes:
Node::Operations
Defined in:
lib/neoon/cypher/instance_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject (readonly)

Returns the value of attribute args.



5
6
7
# File 'lib/neoon/cypher/instance_query.rb', line 5

def args
  @args
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/neoon/cypher/instance_query.rb', line 5

def id
  @id
end

#labelObject (readonly)

Returns the value of attribute label.



5
6
7
# File 'lib/neoon/cypher/instance_query.rb', line 5

def label
  @label
end