Sha256: 63d1ac133fc3e8d0036e5c7cb376d8f5ab452aa8b6f02b4259b04b1081b15a34

Contents?: true

Size: 330 Bytes

Versions: 5

Compression:

Stored size: 330 Bytes

Contents

class CustomStep < Massive::Step
  calculates_total_count_with { 100 }
  job_class 'CustomJob'

  limit_ratio 3000 => 1500, 2000 => 1000, 0 => 100

  protected

  def job_params(index)
    {
      offset: index * limit,
      limit: limit,
      custom_param: "some_param"
    }
  end
end

class InheritedStep < Massive::Step
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
massive-0.4.0 spec/fixtures/custom_step.rb
massive-0.3.0 spec/fixtures/custom_step.rb
massive-0.2.0 spec/fixtures/custom_step.rb
massive-0.1.1 spec/fixtures/custom_step.rb
massive-0.1.0 spec/fixtures/custom_step.rb