Sha256: d9cc70ab585b6f53513fa5ea4d6568128b470a8752d6aa96078b31022fac7de3

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

module DirtySeed
  module Assigners
    # Draws an integer matching validators
    class Integer < Assigner
      include MinMaxHelper

      # Returns an value matching all validators
      # @return [Integer]
      def value
        faker_value(
          category: :Number,
          method: :between,
          options: { from: min, to: max }
        )
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dirty_seed-0.1.8 lib/dirty_seed/assigners/integer.rb