class ActiveGraph::Core::QueryClauses::OrderClause
Constants
- KEYWORD
Public Class Methods
clause_join()
click to toggle source
# File lib/active_graph/core/query_clauses.rb 527 def clause_join 528 Clause::COMMA_SPACE 529 end
clause_strings(clauses)
click to toggle source
# File lib/active_graph/core/query_clauses.rb 523 def clause_strings(clauses) 524 clauses.map!(&:value) 525 end
Public Instance Methods
from_key_and_value(key, value)
click to toggle source
# File lib/active_graph/core/query_clauses.rb 509 def from_key_and_value(key, value) 510 case value 511 when String, Symbol 512 self.class.from_key_and_single_value(key, value) 513 when Array 514 value.map do |v| 515 v.is_a?(Hash) ? from_key_and_value(key, v) : self.class.from_key_and_single_value(key, v) 516 end 517 when Hash 518 value.map { |k, v| "#{self.class.from_key_and_single_value(key, k)} #{v.upcase}" } 519 end 520 end
from_symbol(value)
click to toggle source
# File lib/active_graph/core/query_clauses.rb 505 def from_symbol(value) 506 from_string(value.to_s) 507 end