Module: EntitySnapshot::Postgres::Controls::Batch
- Defined in:
- lib/entity_snapshot/postgres/controls/batch.rb
Class Method Summary collapse
Class Method Details
.example(count: nil, starting_number: nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# 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 |