floor_calculator 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/floor_calculator/pricer.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b90b6a038e8128138c7eaac833de24f11a6aa3c0
|
4
|
+
data.tar.gz: bb0a71604bfbfe1e830582eb6f739aeebe1a7ea5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46e130393515b235022765881e11ed5926f279591843a43308b5caccbcd7e1ded87b91a45aa765101b8b9b8562ceefec42ae00434050b16374a9f051024543b5
|
7
|
+
data.tar.gz: 640adb6ed441cfb9e5d742519d59d70990015aba1ed8a2d248523d4a4987e49a9014c362817dd7301f2757e9ce94a77433f6018d0221ab09c601ccfcaf636055
|
@@ -16,8 +16,9 @@ module FloorCalculator
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def calculate_floor
|
19
|
-
floor =
|
20
|
-
|
19
|
+
floor = offer.price
|
20
|
+
COST_METHODS.each do |method|
|
21
|
+
floor = public_send(method, prepare_options(offer, floor))
|
21
22
|
end
|
22
23
|
round_to_20s(floor.fractional)
|
23
24
|
end
|