class SqlQueryExecutor::Query::Sentence
Constants
- OPERATORS
Attributes
query[R]
Public Class Methods
new(query)
click to toggle source
# File lib/sql_query_executor/query/sentence.rb, line 26 def initialize(query) @query = query @array = query.split(' ') set_operator end
Public Instance Methods
logic(is_hash=false)
click to toggle source
# File lib/sql_query_executor/query/sentence.rb, line 37 def logic(is_hash=false) @operator.logic(is_hash) end
selector()
click to toggle source
# File lib/sql_query_executor/query/sentence.rb, line 33 def selector @operator.selector end
Private Instance Methods
set_operator()
click to toggle source
# File lib/sql_query_executor/query/sentence.rb, line 42 def set_operator operator = OPERATORS[@query.split(' ')[1]] @operator = operator ? operator.new(@query) : nil end