Module: Neo4j::Shared::Cypher::CreateMethod
- Defined in:
- lib/neo4j/shared/cypher.rb
Instance Method Summary collapse
- #create_method ⇒ Object
- #creates_unique(option = :none) ⇒ Object
- #creates_unique? ⇒ Boolean (also: #unique?)
- #creates_unique_option ⇒ Object
Instance Method Details
#create_method ⇒ Object
4 5 6 |
# File 'lib/neo4j/shared/cypher.rb', line 4 def create_method creates_unique? ? :create_unique : :create end |
#creates_unique(option = :none) ⇒ Object
8 9 10 11 |
# File 'lib/neo4j/shared/cypher.rb', line 8 def creates_unique(option = :none) option = :none if option == true @creates_unique = option end |
#creates_unique? ⇒ Boolean Also known as: unique?
17 18 19 |
# File 'lib/neo4j/shared/cypher.rb', line 17 def creates_unique? !!@creates_unique end |
#creates_unique_option ⇒ Object
13 14 15 |
# File 'lib/neo4j/shared/cypher.rb', line 13 def creates_unique_option @creates_unique || :none end |