Class: Masheri::QueryBuilder::Items

Inherits:
Object
  • Object
show all
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

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_sObject



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