Class: Neoon::Cypher::Query

Inherits:
Object
  • Object
show all
Includes:
Schema::Constraints, Schema::Indexes
Defined in:
lib/neoon/cypher/query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Schema::Constraints

#create_constraint, #drop_constraint

Methods included from Schema::Indexes

#create_index, #drop_index, #list_indexes

Constructor Details

#initialize(klass) ⇒ Query

Returns a new instance of Query.



7
8
9
# File 'lib/neoon/cypher/query.rb', line 7

def initialize(klass)
  @label  = klass.is_a?(String) ? klass : klass.name
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



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

def label
  @label
end