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.
Files changed (2) hide show
  1. data/lib/bb_stats_crunch.rb +12 -5
  2. metadata +1 -1
@@ -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 = Float(score1)
10
- @score2 = Float(score2)
11
- @viswins = Float(viswins)
12
- @homewins = Float(homewins)
13
- @totalscore = Float(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)"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bb_stats_crunch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: