lib/fakeit/openapi/example/number_example.rb in fakeit-0.3.0 vs lib/fakeit/openapi/example/number_example.rb in fakeit-0.3.1
- old
+ new
@@ -18,10 +18,10 @@
(num_rand_end * num_multiple)
.then { |result| multipleOf ? result : result.round(2) }
end
def random_number_example
- (Faker::Number.between(num_rand_begin, num_rand_end) * num_multiple)
+ (Faker::Number.between(from: num_rand_begin, to: num_rand_end) * num_multiple)
.then { |result| multipleOf ? result : result.round(2) }
end
def num_rand_begin
multipleOf ? (min_num / multipleOf).ceil : min_num