Method: Wukong::Source::SourceDriver#post_init
- Defined in:
- lib/wukong/source/source_driver.rb
#post_init ⇒ Object
Sets the initial value of index to 1 and sets the batch size
(only if it's positive).
22 23 24 25 26 |
# File 'lib/wukong/source/source_driver.rb', line 22 def post_init super() self.index = 1 self.batch_size = settings[:batch_size].to_i if settings[:batch_size] && settings[:batch_size].to_i > 0 end |