Class: LimitClause
- Defined in:
- lib/activeleopard/query_clauses/limit_clause.rb
Instance Attribute Summary collapse
-
#num ⇒ Object
readonly
Returns the value of attribute num.
Instance Method Summary collapse
- #as_sql ⇒ Object
-
#initialize(num = nil) ⇒ LimitClause
constructor
A new instance of LimitClause.
- #set(n) ⇒ Object
Constructor Details
#initialize(num = nil) ⇒ LimitClause
Returns a new instance of LimitClause.
4 5 6 |
# File 'lib/activeleopard/query_clauses/limit_clause.rb', line 4 def initialize(num = nil) @num = num end |
Instance Attribute Details
#num ⇒ Object (readonly)
Returns the value of attribute num.
2 3 4 |
# File 'lib/activeleopard/query_clauses/limit_clause.rb', line 2 def num @num end |