Class: Neoon::Cypher::Query
- Inherits:
-
Object
- Object
- Neoon::Cypher::Query
- Includes:
- Schema::Constraints, Schema::Indexes
- Defined in:
- lib/neoon/cypher/query.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(klass) ⇒ Query
constructor
A new instance of Query.
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
#label ⇒ Object (readonly)
Returns the value of attribute label.
5 6 7 |
# File 'lib/neoon/cypher/query.rb', line 5 def label @label end |