Class: Faststep::Cursor

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/faststep/cursor.rb,
ext/faststep/cursor.c

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instance Attribute Details

#collectionObject (readonly)

Returns the value of attribute collection.



5
6
7
# File 'lib/faststep/cursor.rb', line 5

def collection
  @collection
end

Class Method Details

.newObject

Instance Method Details

#eachObject

#explainObject

#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

#orderObject

#skip(count) ⇒ Object



7
8
9
10
# File 'lib/faststep/cursor.rb', line 7

def skip(count)
  @skip = count
  self
end

#to_aObject



22
23
24
# File 'lib/faststep/cursor.rb', line 22

def to_a
  super
end