Sha256: 8f13683a6289802031b0d372a6a6777d5d81fe3409d87f784d9caec732576f2a

Contents?: true

Size: 432 Bytes

Versions: 1

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

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

      # Returns an value matching all validators
      # @return [Float]
      def value
        # binding.pry
        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/float.rb