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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f0484f4c46d61a9bc1943a0da9a230cf45e7e92
4
- data.tar.gz: 993a13bbd0fa6134af1b8d41fff0296da5f926fe
3
+ metadata.gz: bd06f6abe0f3fd870210e04b3c0519ae2417c46d
4
+ data.tar.gz: ad70c184d4a091941aeb5ae331a586eab57b890c
5
5
  SHA512:
6
- metadata.gz: c68cbd4e1d312e4f3c6be667a8950a1556b985d44a1b85d88baf4f0fa962dbaf737da38b56c2ea01494c180d5d322930858e2834cc4809d24453c5c8c778b0f3
7
- data.tar.gz: 27d3fc366e97eda752f1b7c1aa3f50046700277ff34269b4a5110b62f82495da01039cea27be41e978f2f5ec2121ca61bfc9fb97e4b36d03e5c97d5fcd8c742b
6
+ metadata.gz: 980a65a87114c6378d73a6fad4ae78a79faea0d6b6911d85b36f804d378e581992568633e9d7106a844c1c4927e60012c21c801348b7d11d52783bc10d96efff
7
+ data.tar.gz: ea4acdac41ce5fbdab2ce4f19ffd0edc61af2331850af0855c2452a1d6f26a0b64ee39613484c3f16518f271ca46778af7a8dcd25acb6b0240dc2f72dd80199b
@@ -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/4)
50
+ prod.offerPrice = prod.offerPrice + (prod.offerPrice/15)
51
51
  when 2
52
- prod.offerPrice = prod.offerPrice - (prod.offerPrice/36)
52
+ prod.offerPrice = prod.offerPrice - (prod.offerPrice/24)
53
53
  when 3
54
- prod.offerPrice = prod.offerPrice - (prod.offerPrice/32)
54
+ prod.offerPrice = prod.offerPrice - (prod.offerPrice/22)
55
55
  when 4
56
- prod.offerPrice = prod.offerPrice - (prod.offerPrice/28)
56
+ prod.offerPrice = prod.offerPrice - (prod.offerPrice/20)
57
57
  when 5
58
- prod.offerPrice = prod.offerPrice - (prod.offerPrice/24)
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/8)
66
+ prod.offerPrice = prod.offerPrice - (prod.offerPrice/10)
67
67
  when 10
68
- prod.offerPrice = prod.offerPrice - (prod.offerPrice/4)
68
+ prod.offerPrice = prod.offerPrice - (prod.offerPrice/8)
69
69
  else
70
70
  prod.offerPrice = 18
71
71
  end
@@ -1,3 +1,3 @@
1
1
  module PricingObserver
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pricing_observer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kishore Kumar