jishan_fast_track_gem 0.1.15 → 0.1.16
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/README.md +23 -10
- data/lib/eligibility_check.rb +2 -1
- data/lib/jishan_fast_track_gem/version.rb +1 -1
- data/lib/jishan_fast_track_gem.rb +0 -1
- data/lib/rebate_calculator.rb +6 -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: bcb60c3065d08a743960f08beeae0ff05b06b1d62ed28cf253a3d6e2867bcf38
|
4
|
+
data.tar.gz: daf7971c43aaa256d75994053c31d229f767adab626b6758705df0793e57b32a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c4214c6d2c1636b1daaea447545327d3168f320c2bbe27f9928c32fdc96fd93ca016505b066b962391f9bfe56c0097e82d3eee0ad7f5b05742e3db3b13de129
|
7
|
+
data.tar.gz: d1ddaa69626a0aea99a1e95d05becbe54d0fbf87da2253fdb9bb79222ab2525bdeddb63a5ea92a768aa18a4c7ffc44406137432e68549326e493fab8867e740f
|
data/README.md
CHANGED
@@ -4,24 +4,37 @@ https://github.com/jishan33/T1A2
|
|
4
4
|
|
5
5
|
Software Development Plan
|
6
6
|
--------------------------
|
7
|
-
|
8
|
-
I like the idea of using technology to ease people’s life and simultaneously providing a more environmental environment. Solar panel rebate is a great program to encourage people to use more sustainable energy to support a more independent and efficient lifestyle. Making the program process more accessible is a great way to promote the concept of combing technology and sustainable energy.
|
7
|
+
This application will make the solar panel rebate process easier for users and managers as the whole process can be completed in one terminal app.
|
9
8
|
|
10
|
-
|
9
|
+
Users can check if they are eligible by answering a short questionnaire. Also, they can easily check whether all the files have been successfully uploaded and are of the correct type. The rebate can be easily evaluated by simply provide postcode, kw and deeming year.
|
11
10
|
|
12
|
-
|
11
|
+
The manager can easily arrange the lists of applicants and assign applicants to the appropriate lists as well as remove them.
|
13
12
|
|
14
|
-
|
13
|
+
Although the information for the solar panel rebates can be easily accessed online, the application process sometimes can be difficult.
|
15
14
|
|
16
|
-
|
15
|
+
In order to reduce the difficulty of the application process, transforming the long and bland list into a more interactive questionnaire might increase the number of potential applicants.
|
17
16
|
|
18
|
-
|
17
|
+
Also, providing the rebate assessment and the eligibility check on the same platform encourages the potential applicants to go through the process. Allocating the rebate calculator at the beginning and at the end could potentially increase their interests in this rebate program.
|
19
18
|
|
20
|
-
|
19
|
+
The target audiences are the property owners with less than 180,000 household income combined income who would like to install some solar panels on their properties.
|
21
20
|
|
22
|
-
|
21
|
+
This terminal app is a comparably easy process for them to use. They probably would play around with this app to have some basic ideas about this rebate program. And further, apply for it with the required documents.
|
22
|
+
|
23
|
+
### Functions to be implemented:
|
24
|
+
- `instruction (eligibility check)`
|
25
|
+
- This function can kick off the application by presenting the user with a description of how to use the program and kick off the initial sequence of questions.
|
26
|
+
|
27
|
+
- `eligibility_response`
|
28
|
+
- This function will be called to asses the answers provided by the user and determine whether or not they are eligible and inform them
|
29
|
+
- `answer_check`
|
30
|
+
- There will be many questions with the same yes/no/exit response, therefore it makes sense to implement an answer check method to avoid duplicating code for each question. This function can take in the answer provided by the user and add to the list of ineligable answers / exit the program / prompt for the next question as appropriate.
|
31
|
+
- `valid_file_check`
|
32
|
+
- The user will be prompted to submit several different files with similar requirements. As such, it makes sense to create a method that has common validation rules and ensures that the user provides a correct file in each case.
|
33
|
+
- `stc_postcode_rating`
|
34
|
+
- Reads in a csv which lists postcode ranges as their respective STC ratings to be used later in the rebate function. This data is then used to determine the STC rating based on the users postcode.
|
35
|
+
- `rebate`
|
36
|
+
- Once the user has determined their eligibility and provided the details of their solar panel installation and location, the rebate method is used to calculate the approximate amount of rebate the user would be eligible to receive under the scheme.
|
23
37
|
|
24
|
-
This terminal app is a comparably easy process for them to use. They probably would play around with this app to have some basic ideas about this rebate program. And further, apply it with the required documents.
|
25
38
|
|
26
39
|
Three features description
|
27
40
|
----------------------------
|
data/lib/eligibility_check.rb
CHANGED
@@ -60,7 +60,8 @@ class Eligibility_check
|
|
60
60
|
|
61
61
|
def eligibility_response
|
62
62
|
if @answers.size == 0
|
63
|
-
|
63
|
+
clap = Emoji.find_by_alias("clap").raw + " "
|
64
|
+
puts "Congrats! You are eligible for solar panel rebate #{clap * 3}".colorize(:red)
|
64
65
|
else
|
65
66
|
puts "Sorry, you are not eligible for solar panel rebate program."
|
66
67
|
end
|
@@ -6,7 +6,6 @@ require_relative 'manage_list'
|
|
6
6
|
|
7
7
|
# write the intro
|
8
8
|
# Help file includes *comprehensive* instructions which *accurately* describe: steps to install the application; dependencies required by the application; system/hardware requirements; features of the application.
|
9
|
-
|
10
9
|
john = Eligibility_check.new("John")
|
11
10
|
# john.instruction
|
12
11
|
john_files = Files_check.new("John Files")
|
data/lib/rebate_calculator.rb
CHANGED
@@ -24,8 +24,10 @@ class Rebate_calculator
|
|
24
24
|
if postcode > 9999
|
25
25
|
puts "It's not a valid postcode, please type a valid postcode.".colorize(:light_yellow)
|
26
26
|
end
|
27
|
-
break if postcode < 9999
|
28
27
|
@postcode = postcode
|
28
|
+
if postcode < 9999
|
29
|
+
break
|
30
|
+
end
|
29
31
|
end
|
30
32
|
|
31
33
|
puts "How many kilowatt is your future solar panel?"
|
@@ -50,6 +52,9 @@ class Rebate_calculator
|
|
50
52
|
|
51
53
|
def stc_calculator
|
52
54
|
@stc = (@kw * @stc_rating * @deeming_year).floor
|
55
|
+
|
56
|
+
p self
|
57
|
+
|
53
58
|
rebate
|
54
59
|
end
|
55
60
|
|