Class: RRSchedule::Gameday
- Inherits:
-
Object
- Object
- RRSchedule::Gameday
- Defined in:
- lib/rrschedule.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#games ⇒ Object
Returns the value of attribute games.
Instance Method Summary collapse
-
#initialize(params) ⇒ Gameday
constructor
A new instance of Gameday.
Constructor Details
#initialize(params) ⇒ Gameday
Returns a new instance of Gameday.
343 344 345 346 |
# File 'lib/rrschedule.rb', line 343 def initialize(params) self.date = params[:date] self.games = params[:games] || [] end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
341 342 343 |
# File 'lib/rrschedule.rb', line 341 def date @date end |
#games ⇒ Object
Returns the value of attribute games.
341 342 343 |
# File 'lib/rrschedule.rb', line 341 def games @games end |