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.



141
142
143
# File 'lib/masheri/query_builder.rb', line 141

def initialize(count)
  @count = count
end

Instance Method Details

#to_sObject



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