current_predictor 0.0.1 → 0.0.2
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/current_predictor.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94908306a0aff0dd843670e1e9a7fdd34908ebe8
|
4
|
+
data.tar.gz: af10d8269591ec4eff6807b3d3509e7845c62829
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df4df0e0c573a095464eb9e72d738f92147cd3ab79613fcbd0def95befd9297b71a4a68f72867c81dd7e25c97c6edfc95e7db45d5f3e889870ba58f4d080387c
|
7
|
+
data.tar.gz: 3d72f154f8ba69e79b8a64dab85592317f46c2a5e69c1b273be1f172a66ae931468fa50c9f36bf97b2654a40cd87288d244979b292106706d108f2520f93bfce
|
data/lib/current_predictor.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
module CurrentPredictor
|
2
2
|
class Calculation
|
3
|
-
def self.yearlyconsumption_onrooms(matter)
|
3
|
+
def self.yearlyconsumption_onrooms(matter,room)
|
4
4
|
consumption = matter
|
5
5
|
puts "Enter the number of rooms : "
|
6
|
-
a=
|
6
|
+
a = room
|
7
7
|
b = consumption*a
|
8
8
|
puts "Yearly consumption of a #{a} BHK rooms in terms of power consumption is #{b} KWH"
|
9
9
|
return a,b
|
10
10
|
end
|
11
11
|
|
12
|
-
def self.monthlyconsumption(matter,cost)
|
12
|
+
def self.monthlyconsumption(matter,cost,room)
|
13
13
|
consumption = matter
|
14
14
|
cost = cost
|
15
15
|
puts "Enter the number of rooms : "
|
16
|
-
a =
|
16
|
+
a = room
|
17
17
|
b = (consumption*a)/12
|
18
18
|
c = b*cost
|
19
19
|
puts "Monthly consumption of a #{a} BHK rooms in terms of power consumption is #{b} KWH and the cost is #{c}"
|