class Aspen::AbstractStatement

Public Instance Methods

nodes() click to toggle source

@return [Array<Aspen::Node>] a list of nodes from the statement

# File lib/aspen/abstract_statement.rb, line 24
def nodes
  raise NotImplementedError, "Find me in #{__FILE__}"
end
signature() click to toggle source

@return [String] a short description the relationship contained in the statement @example Company hired a Person

(Company)-[HIRED]->(Person)

@example Person knows Person, reciprocally

(Person)-[KNOWS]-(Person)
# File lib/aspen/abstract_statement.rb, line 19
def signature
  raise NotImplementedError, "Find me in #{__FILE__}"
end
to_cypher() click to toggle source

@return [String] the Cypher query from this particular statement

# File lib/aspen/abstract_statement.rb, line 29
def to_cypher
  raise NotImplementedError, "Find me in #{__FILE__}"
end
type() click to toggle source

@return [String] the type of statement (:vanilla, :custom)

# File lib/aspen/abstract_statement.rb, line 10
def type
  raise NotImplementedError, "Find me in #{__FILE__}"
end