Class: Masheri::QueryBuilder::Items
- Inherits:
-
Object
- Object
- Masheri::QueryBuilder::Items
- Defined in:
- lib/masheri/query_builder.rb
Overview
the ITEMS clause can specify an alternative number of records to return per page. > SELECT * FROM members ITEMS 25
Instance Method Summary collapse
-
#initialize(count) ⇒ Items
constructor
A new instance of Items.
- #to_s ⇒ Object
Constructor Details
#initialize(count) ⇒ Items
Returns a new instance of Items.
141 142 143 |
# File 'lib/masheri/query_builder.rb', line 141 def initialize(count) @count = count end |
Instance Method Details
#to_s ⇒ Object
145 146 147 148 149 150 151 |
# File 'lib/masheri/query_builder.rb', line 145 def to_s if @count.blank? "" else "ITEMS #{@count}" end end |