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.
144 145 146 |
# File 'lib/masheri/query_builder.rb', line 144 def initialize(count) @count = count end |
Instance Method Details
#to_s ⇒ Object
148 149 150 151 152 153 154 |
# File 'lib/masheri/query_builder.rb', line 148 def to_s if @count.blank? "" else "ITEMS #{@count}" end end |