class Faker::Invoice

def amount_between(legacy_from = NOT_GIVEN, legacy_to = NOT_GIVEN, from: 0, to: 0)

Returns:
  • (Integer) -

Parameters:
  • to (Integer) -- Specifies upper limit.
  • from (Integer) -- Specifies lower limit.
def amount_between(legacy_from = NOT_GIVEN, legacy_to = NOT_GIVEN, from: 0, to: 0)
  warn_for_deprecated_arguments do |keywords|
    keywords << :from if legacy_from != NOT_GIVEN
    keywords << :to if legacy_to != NOT_GIVEN
  end
  Faker::Base.rand_in_range(from, to).round(2)
end