jishan_fast_track_gem 0.1.9 → 0.1.10

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: 2f349eb979758a14bbd2408da56b80f427b81bcf8c2adedcf7233548725391d0
4
- data.tar.gz: 36a8fd88dc5d0784ce8bf8719c10a600176aa0b1b4f5f7fd0b318b71f34236d9
3
+ metadata.gz: 22314c17453b2479cb221487846eeb2034bd63a11428c33c4547f2c40cd0da49
4
+ data.tar.gz: 108081b925e67992d53b4d8366a81746342b5277e2ff32680a65dd0575aabfbe
5
5
  SHA512:
6
- metadata.gz: a84d153276e3ade1d34143907a40ae854d01b25eedaa2b417691a4a9367a446819b46fa35031e22312f17246951dc759252a8d4b72a3336db2aad082b83ce7bc
7
- data.tar.gz: 56d984310f1443769e1eff6672c1860438a4f110d66a2e5558b5663db9cb7656c464a9c0afe0dd3a1746266a80fa9a93386aff11059c5ab28e57d6153d12611b
6
+ metadata.gz: 609d9642cb3de236d4ed67310f4354275e7db8a74cf106b15ea0e9cc171ffd505883ea313fc95cced0ac7d89bc9aa263f8a11fd2caa52575541973664880a138
7
+ data.tar.gz: 973fb73a0b6976b0c09b3e629cd295b2cba326217757f02796ea4b1aa850020654358b67d48e0a625912e08feda9ce9d684bfadc4e0b6ea64ed75e08fefdd13f
@@ -4,7 +4,7 @@ require 'colorize'
4
4
  require 'gemoji'
5
5
 
6
6
 
7
- class Solar_panel_rebate_egilibility_check
7
+ class Eligibility_check
8
8
  def initialize
9
9
  @answers =[]
10
10
  end
data/lib/files_check.rb CHANGED
@@ -3,7 +3,7 @@ require "csv"
3
3
  require "colorize"
4
4
  require "table_print"
5
5
 
6
- class Provided_files_check
6
+ class Files_check
7
7
  def initialize
8
8
  end
9
9
 
@@ -10,7 +10,7 @@ require_relative 'manage_lists'
10
10
  john = Solar_panel_rebate_egilibility_check.new
11
11
  # john.ower_of_the_property
12
12
  john_files = Provided_files_check.new
13
- john_files.income_proof
13
+ # john_files.income_proof
14
14
 
15
15
  # list_zone_1 = Manage_list.new
16
16
  # list_zone_2 = Manage_list.new
@@ -27,6 +27,11 @@ john_files.income_proof
27
27
 
28
28
  # p Manage_list.display_processing_number
29
29
 
30
+ john_rebate = Rebate_calculator.new
31
+ john_rebate.stc_postcode_rating(3163)
32
+ john_rebate.stc_calculator(5.3, 5)
33
+
34
+
30
35
 
31
36
 
32
37
 
@@ -1,3 +1,3 @@
1
1
  module JishanFastTrackGem
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
File without changes
@@ -1,4 +1,5 @@
1
1
  require 'csv'
2
+ require 'colorize'
2
3
 
3
4
  class Rebate_calculator
4
5
  def initialize
@@ -18,11 +19,16 @@ class Rebate_calculator
18
19
 
19
20
  def stc_calculator(kw, deeming_year)
20
21
  @stc = (kw * @stc_rating * deeming_year).floor
22
+ rebate
21
23
  end
22
24
 
23
25
  def rebate
24
26
  stc_value = 37.5
25
27
  rebate_amount = @stc * stc_value
26
- rebate_amount > 1888 ? 1888 : rebate_amount
28
+ if rebate_amount > 1888
29
+ puts "Total amount of your solar panel rebate has reach the maximun, which is $1888 aud.".colorize(:red)
30
+ else
31
+ puts "Total amount of your solar panel rebate is $#{rebate_amount} aud".colorize(:red)
32
+ end
27
33
  end
28
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jishan_fast_track_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jishan_Lu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-11 00:00:00.000000000 Z
11
+ date: 2020-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -53,7 +53,7 @@ files:
53
53
  - lib/files_check.rb
54
54
  - lib/jishan_fast_track_gem.rb
55
55
  - lib/jishan_fast_track_gem/version.rb
56
- - lib/manage_lists.rb
56
+ - lib/manage_list.rb
57
57
  - lib/rebate_calculator.rb
58
58
  - lib/stc_rating.csv
59
59
  homepage: https://github.com/jishan33/JJ