module EntitySnapshot::Postgres::Controls::Batch

Public Class Methods

example(count: nil, starting_number: nil) click to toggle source
# File lib/entity_snapshot/postgres/controls/batch.rb, line 5
def self.example(count: nil, starting_number: nil)
  count ||= 2
  starting_number ||= 1

  batch = []
  count.times do |i|
    number = ('1' * (i + starting_number)).to_i
    batch << Controls::Message.example(number: number)
  end

  batch
end