Module: Pacer::Filter::SqlFilter
- Defined in:
- lib/pacer-orient/sql_filter.rb
Instance Attribute Summary collapse
- #limit(n = nil) ⇒ Object
- #offset(n = nil) ⇒ Object
-
#order_by ⇒ Object
Returns the value of attribute order_by.
-
#orient_type ⇒ Object
Returns the value of attribute orient_type.
-
#parallel ⇒ Object
Returns the value of attribute parallel.
-
#query_args ⇒ Object
Returns the value of attribute query_args.
-
#select ⇒ Object
Returns the value of attribute select.
-
#sql ⇒ Object
Returns the value of attribute sql.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#where ⇒ Object
Returns the value of attribute where.
Instance Attribute Details
#limit(n = nil) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/pacer-orient/sql_filter.rb', line 16 def limit(n = nil) if n @limit = n self else @limit end end |
#offset(n = nil) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/pacer-orient/sql_filter.rb', line 7 def offset(n = nil) if n @offset = n self else @offset end end |
#order_by ⇒ Object
Returns the value of attribute order_by.
4 5 6 |
# File 'lib/pacer-orient/sql_filter.rb', line 4 def order_by @order_by end |
#orient_type ⇒ Object
Returns the value of attribute orient_type.
4 5 6 |
# File 'lib/pacer-orient/sql_filter.rb', line 4 def orient_type @orient_type end |
#parallel ⇒ Object
Returns the value of attribute parallel.
4 5 6 |
# File 'lib/pacer-orient/sql_filter.rb', line 4 def parallel @parallel end |
#query_args ⇒ Object
Returns the value of attribute query_args.
4 5 6 |
# File 'lib/pacer-orient/sql_filter.rb', line 4 def query_args @query_args end |
#select ⇒ Object
Returns the value of attribute select.
4 5 6 |
# File 'lib/pacer-orient/sql_filter.rb', line 4 def select @select end |
#sql ⇒ Object
Returns the value of attribute sql.
4 5 6 |
# File 'lib/pacer-orient/sql_filter.rb', line 4 def sql @sql end |
#timeout ⇒ Object
Returns the value of attribute timeout.
4 5 6 |
# File 'lib/pacer-orient/sql_filter.rb', line 4 def timeout @timeout end |
#where ⇒ Object
Returns the value of attribute where.
4 5 6 |
# File 'lib/pacer-orient/sql_filter.rb', line 4 def where @where end |