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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67440db6711ce7b26c6a30131ef413d16424f15ad240eccbecd1957e77b05454
4
- data.tar.gz: a638e4b1d4fbdc7a02648d1032012888ec6c09a057eb1706bdea7ba83c008abb
3
+ metadata.gz: ca51837626b7d4d250dfa50549d228c2c826f190dc247e2a8206849a249185a7
4
+ data.tar.gz: 66b5b508aaa63bf8634597b97201818500ba1caf42b20ffe8d4a41b1620c685a
5
5
  SHA512:
6
- metadata.gz: 56e9f8d58c2df1ba8e6f64d9db55104fc5a48a2467ed0d1b4306f255a75bcdb0feee3638467722bb0e785950b168e3027f6a584790f489064b0a95f0dd8b788a
7
- data.tar.gz: a28e8accac9d5ef230566a1e9c98728f2e3b58dd9dcda7739823d2de92d5038683ff410fc473aab4330d30e6c290ea6d80707b72d7a6e081d581fde8f42264c5
6
+ metadata.gz: bc87b7e461b08295d9f01387c039d04f077172ba6df55e7dd6df907d8b02518510af2fa2cf053153ec4fcd5e417b1297d767f259f88f781da63d99ca8155a920
7
+ data.tar.gz: 4bd9e17a3f38d9cbf59bd6290ff250329333a2e5936b4f3f0f6c9875577b9a46d934a09f892046f8d9980661182f147c3559ede38055eb25d021161d7ea340aa
@@ -1,3 +1,3 @@
1
1
  module JishanFastTrackGem
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
@@ -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 maximun, which is $1888 aud.".colorize(:red)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jishan_fast_track_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jishan_Lu