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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/current_predictor.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38d65f7cd17ef7e89d2e6759baca547331b1afaa
4
- data.tar.gz: 1fbc77881a616bd682a1001064656405cc2bcedc
3
+ metadata.gz: 94908306a0aff0dd843670e1e9a7fdd34908ebe8
4
+ data.tar.gz: af10d8269591ec4eff6807b3d3509e7845c62829
5
5
  SHA512:
6
- metadata.gz: a7cf21df6e24570d3bd57e4ff0362cbcfac4da54f5bcb524168318a51f342b3c1e67fda2b4f1786dc5bcf4232d314d81ce5a509cf38d0da359729098fd096294
7
- data.tar.gz: '01785540c3c39adeff51a223867927e8fac8d707ac7706b194e5e823b8134c93fb5f3a1b8b5da7ebfa612b028d64c88ea4f30115490012c7be33357470f28e95'
6
+ metadata.gz: df4df0e0c573a095464eb9e72d738f92147cd3ab79613fcbd0def95befd9297b71a4a68f72867c81dd7e25c97c6edfc95e7db45d5f3e889870ba58f4d080387c
7
+ data.tar.gz: 3d72f154f8ba69e79b8a64dab85592317f46c2a5e69c1b273be1f172a66ae931468fa50c9f36bf97b2654a40cd87288d244979b292106706d108f2520f93bfce
@@ -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=gets.chomp.to_i
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 = gets.chomp.to_i
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}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: current_predictor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - manojitkannan