pricing_observer 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pricing_observer.rb +9 -9
- data/lib/pricing_observer/version.rb +1 -1
- 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: bd06f6abe0f3fd870210e04b3c0519ae2417c46d
|
4
|
+
data.tar.gz: ad70c184d4a091941aeb5ae331a586eab57b890c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 980a65a87114c6378d73a6fad4ae78a79faea0d6b6911d85b36f804d378e581992568633e9d7106a844c1c4927e60012c21c801348b7d11d52783bc10d96efff
|
7
|
+
data.tar.gz: ea4acdac41ce5fbdab2ce4f19ffd0edc61af2331850af0855c2452a1d6f26a0b64ee39613484c3f16518f271ca46778af7a8dcd25acb6b0240dc2f72dd80199b
|
data/lib/pricing_observer.rb
CHANGED
@@ -47,25 +47,25 @@ class Pricing
|
|
47
47
|
puts(prod.hit.inspect)
|
48
48
|
case prod.hit
|
49
49
|
when 1
|
50
|
-
prod.offerPrice = prod.offerPrice + (prod.offerPrice/
|
50
|
+
prod.offerPrice = prod.offerPrice + (prod.offerPrice/15)
|
51
51
|
when 2
|
52
|
-
prod.offerPrice = prod.offerPrice - (prod.offerPrice/
|
52
|
+
prod.offerPrice = prod.offerPrice - (prod.offerPrice/24)
|
53
53
|
when 3
|
54
|
-
prod.offerPrice = prod.offerPrice - (prod.offerPrice/
|
54
|
+
prod.offerPrice = prod.offerPrice - (prod.offerPrice/22)
|
55
55
|
when 4
|
56
|
-
prod.offerPrice = prod.offerPrice - (prod.offerPrice/
|
56
|
+
prod.offerPrice = prod.offerPrice - (prod.offerPrice/20)
|
57
57
|
when 5
|
58
|
-
prod.offerPrice = prod.offerPrice - (prod.offerPrice/
|
58
|
+
prod.offerPrice = prod.offerPrice - (prod.offerPrice/18)
|
59
59
|
when 6
|
60
|
-
prod.offerPrice = prod.offerPrice - (prod.offerPrice/20)
|
61
|
-
when 7
|
62
60
|
prod.offerPrice = prod.offerPrice - (prod.offerPrice/16)
|
61
|
+
when 7
|
62
|
+
prod.offerPrice = prod.offerPrice - (prod.offerPrice/14)
|
63
63
|
when 8
|
64
64
|
prod.offerPrice = prod.offerPrice - (prod.offerPrice/12)
|
65
65
|
when 9
|
66
|
-
prod.offerPrice = prod.offerPrice - (prod.offerPrice/
|
66
|
+
prod.offerPrice = prod.offerPrice - (prod.offerPrice/10)
|
67
67
|
when 10
|
68
|
-
prod.offerPrice = prod.offerPrice - (prod.offerPrice/
|
68
|
+
prod.offerPrice = prod.offerPrice - (prod.offerPrice/8)
|
69
69
|
else
|
70
70
|
prod.offerPrice = 18
|
71
71
|
end
|