bb_stats_crunch 0.1.2 → 0.1.3
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.
- data/lib/bb_stats_crunch.rb +12 -5
- metadata +1 -1
data/lib/bb_stats_crunch.rb
CHANGED
@@ -1,16 +1,23 @@
|
|
1
|
+
## This class reads in a CSV file and outputs some data to an OUTPUT file
|
2
|
+
# as well as to the user screen.
|
3
|
+
|
1
4
|
require 'csv'
|
5
|
+
|
2
6
|
class BbStatsCrunch
|
7
|
+
|
8
|
+
# puts "enter year (valid year between 1960 - 1969)"
|
9
|
+
# year = gets.chomp
|
3
10
|
|
4
11
|
attr_accessor :team1, :team2, :score1, :score2, :viswins, :homewins
|
5
12
|
|
6
13
|
def initialize(team1, team2, score1, score2, viswins, homewins, totalscore)
|
7
14
|
@team1 = team1
|
8
15
|
@team2 = team2
|
9
|
-
@score1 =
|
10
|
-
@score2 =
|
11
|
-
@viswins =
|
12
|
-
@homewins =
|
13
|
-
@totalscore =
|
16
|
+
@score1 = score1
|
17
|
+
@score2 = score2
|
18
|
+
@viswins = viswins
|
19
|
+
@homewins = homewins
|
20
|
+
@totalscore = totalscore
|
14
21
|
end
|
15
22
|
|
16
23
|
# puts "enter year (valid year between 1960 - 1969)"
|