Module: ActiveRecordBatchEnumerator

Defined in:
lib/patches/active_record_batch_enumerator.rb

Overview

Add attribute readers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#finishObject (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

#relationObject (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

#startObject (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_sizeObject

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