Class: CFB::Game
Instance Method Summary collapse
- #start_date=(val) ⇒ Object (also: #date=)
- #to_s ⇒ Object
Instance Method Details
#start_date=(val) ⇒ Object Also known as: date=
78 79 80 81 |
# File 'lib/cfb_api/models.rb', line 78 def start_date=(val) val = Date.strptime(val) if val.is_a? String super(val) end |
#to_s ⇒ Object
83 84 85 |
# File 'lib/cfb_api/models.rb', line 83 def to_s "#{away_team} @ #{home_team} (Week #{week}, #{season})" end |