Module: ActiveRecordBatchEnumerator
- Defined in:
- lib/patches/active_record_batch_enumerator.rb
Overview
Add attribute readers.
Instance Attribute Summary collapse
-
#finish ⇒ Object
readonly
The primary key value at which the BatchEnumerator ends, inclusive of the value.
-
#relation ⇒ Object
readonly
The relation from which the BatchEnumerator yields batches.
-
#start ⇒ Object
readonly
The primary key value from which the BatchEnumerator starts, inclusive of the value.
Instance Method Summary collapse
-
#batch_size ⇒ Object
The size of the batches yielded by the BatchEnumerator.
Instance Attribute Details
#finish ⇒ Object (readonly)
The primary key value at which the BatchEnumerator ends,
inclusive of the value.
12 13 14 |
# File 'lib/patches/active_record_batch_enumerator.rb', line 12 def finish @finish end |
#relation ⇒ Object (readonly)
The relation from which the BatchEnumerator yields batches.
15 16 17 |
# File 'lib/patches/active_record_batch_enumerator.rb', line 15 def relation @relation end |
#start ⇒ Object (readonly)
The primary key value from which the BatchEnumerator starts,
inclusive of the value.
8 9 10 |
# File 'lib/patches/active_record_batch_enumerator.rb', line 8 def start @start end |
Instance Method Details
#batch_size ⇒ Object
The size of the batches yielded by the BatchEnumerator.
18 19 20 |
# File 'lib/patches/active_record_batch_enumerator.rb', line 18 def batch_size @of end |