Class: Faststep::Cursor
- Inherits:
-
Object
- Object
- Faststep::Cursor
- Includes:
- Enumerable
- Defined in:
- lib/faststep/cursor.rb,
ext/faststep/cursor.c
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
Class Method Summary collapse
Instance Method Summary collapse
- #each ⇒ Object
- #explain ⇒ Object
- #fields(field_array) ⇒ Object
- #initialize ⇒ Object constructor
- #limit(count) ⇒ Object
- #order ⇒ Object
- #skip(count) ⇒ Object
- #to_a ⇒ Object
Constructor Details
#initialize ⇒ Object
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
5 6 7 |
# File 'lib/faststep/cursor.rb', line 5 def collection @collection end |
Class Method Details
.new ⇒ Object
Instance Method Details
#each ⇒ Object
#explain ⇒ Object
#fields(field_array) ⇒ Object
17 18 19 20 |
# File 'lib/faststep/cursor.rb', line 17 def fields(field_array) @fields = field_array self end |
#limit(count) ⇒ Object
12 13 14 15 |
# File 'lib/faststep/cursor.rb', line 12 def limit(count) @limit = count self end |
#order ⇒ Object
#skip(count) ⇒ Object
7 8 9 10 |
# File 'lib/faststep/cursor.rb', line 7 def skip(count) @skip = count self end |
#to_a ⇒ Object
22 23 24 |
# File 'lib/faststep/cursor.rb', line 22 def to_a super end |