Class: SQLParser::Statement::DirectSelect

Inherits:
Node
  • Object
show all
Defined in:
lib/rossoc/statement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #to_sql

Constructor Details

#initialize(query_expression, order_by, rsleep = nil, rspeed = nil) ⇒ DirectSelect

Returns a new instance of DirectSelect.



43
44
45
46
47
48
# File 'lib/rossoc/statement.rb', line 43

def initialize(query_expression, order_by, rsleep = nil, rspeed = nil)
  @query_expression = query_expression
  @order_by = order_by
  @rsleep = rsleep
  @rspeed = rspeed
end

Instance Attribute Details

#order_byObject (readonly)

Returns the value of attribute order_by.



50
51
52
# File 'lib/rossoc/statement.rb', line 50

def order_by
  @order_by
end

#query_expressionObject (readonly)

Returns the value of attribute query_expression.



50
51
52
# File 'lib/rossoc/statement.rb', line 50

def query_expression
  @query_expression
end

#rsleepObject (readonly)

Returns the value of attribute rsleep.



50
51
52
# File 'lib/rossoc/statement.rb', line 50

def rsleep
  @rsleep
end

#rspeedObject (readonly)

Returns the value of attribute rspeed.



50
51
52
# File 'lib/rossoc/statement.rb', line 50

def rspeed
  @rspeed
end