lib/fakeit/openapi/example/number_example.rb in fakeit-0.4.2 vs lib/fakeit/openapi/example/number_example.rb in fakeit-0.5.0

- old
+ new

@@ -14,15 +14,15 @@ private def static_number_example (num_rand_end * num_multiple) - .then { |result| multipleOf ? result : result.round(2) } + .then { multipleOf ? _1 : _1.round(2) } end def random_number_example (Faker::Number.between(from: num_rand_begin, to: num_rand_end) * num_multiple) - .then { |result| multipleOf ? result : result.round(2) } + .then { multipleOf ? _1 : _1.round(2) } end def num_rand_begin multipleOf ? (min_num / multipleOf).ceil : min_num end