class Game

Attributes

date[RW]
location[RW]
opponent[RW]
time[RW]

Public Class Methods

new(date, time, opponent, location) click to toggle source
# File lib/game.rb, line 10
def initialize(date, time, opponent, location)
  @date     = date.nil? ? "" : date
  @time     = time.nil? ? "" : time
  @opponent = opponent.nil? ? "" : opponent
  @location = location.nil? ? "" : location
end