Class: Sunspot::Query::StartRecord
- Inherits:
-
Object
- Object
- Sunspot::Query::StartRecord
- Defined in:
- lib/plugins/ext/sunspot/start_record.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#maximum_record ⇒ Object
Returns the value of attribute maximum_record.
-
#start_record ⇒ Object
Returns the value of attribute start_record.
Instance Method Summary collapse
-
#initialize(start_record = nil, maximum_record = nil) ⇒ StartRecord
constructor
A new instance of StartRecord.
- #to_params ⇒ Object
Constructor Details
#initialize(start_record = nil, maximum_record = nil) ⇒ StartRecord
Returns a new instance of StartRecord.
6 7 8 |
# File 'lib/plugins/ext/sunspot/start_record.rb', line 6 def initialize(start_record = nil, maximum_record = nil) self.start_record, self.maximum_record = start_record, maximum_record end |
Instance Attribute Details
#maximum_record ⇒ Object
Returns the value of attribute maximum_record.
4 5 6 |
# File 'lib/plugins/ext/sunspot/start_record.rb', line 4 def maximum_record @maximum_record end |
#start_record ⇒ Object
Returns the value of attribute start_record.
4 5 6 |
# File 'lib/plugins/ext/sunspot/start_record.rb', line 4 def start_record @start_record end |
Instance Method Details
#to_params ⇒ Object
10 11 12 |
# File 'lib/plugins/ext/sunspot/start_record.rb', line 10 def to_params { :start => start, :rows => rows } end |