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