jishan_fast_track_gem 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jishan_fast_track_gem/version.rb +1 -1
- data/lib/rebate_calculator.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca51837626b7d4d250dfa50549d228c2c826f190dc247e2a8206849a249185a7
|
4
|
+
data.tar.gz: 66b5b508aaa63bf8634597b97201818500ba1caf42b20ffe8d4a41b1620c685a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc87b7e461b08295d9f01387c039d04f077172ba6df55e7dd6df907d8b02518510af2fa2cf053153ec4fcd5e417b1297d767f259f88f781da63d99ca8155a920
|
7
|
+
data.tar.gz: 4bd9e17a3f38d9cbf59bd6290ff250329333a2e5936b4f3f0f6c9875577b9a46d934a09f892046f8d9980661182f147c3559ede38055eb25d021161d7ea340aa
|
data/lib/rebate_calculator.rb
CHANGED
@@ -21,6 +21,8 @@ class Rebate_calculator
|
|
21
21
|
stc_calculator
|
22
22
|
end
|
23
23
|
|
24
|
+
private
|
25
|
+
|
24
26
|
def stc_calculator
|
25
27
|
@stc = (@kw * @stc_rating * @deeming_year).floor
|
26
28
|
rebate
|
@@ -30,9 +32,10 @@ class Rebate_calculator
|
|
30
32
|
stc_value = 37.5
|
31
33
|
rebate_amount = @stc * stc_value
|
32
34
|
if rebate_amount > 1888
|
33
|
-
puts "Total amount of your solar panel rebate has reach the
|
35
|
+
puts "Total amount of your solar panel rebate has reach the maximum, which is $1888 aud.".colorize(:red)
|
34
36
|
else
|
35
37
|
puts "Total amount of your solar panel rebate is $#{rebate_amount} aud".colorize(:red)
|
36
38
|
end
|
39
|
+
rebate_amount
|
37
40
|
end
|
38
41
|
end
|