Class: NflData::Schedule
- Inherits:
-
Struct
- Object
- Struct
- NflData::Schedule
- Defined in:
- lib/nfl_data/schedule.rb
Instance Attribute Summary collapse
-
#games ⇒ Object
Returns the value of attribute games.
Instance Method Summary collapse
-
#initialize(games: []) ⇒ Schedule
constructor
A new instance of Schedule.
- #to_h ⇒ Object
Constructor Details
#initialize(games: []) ⇒ Schedule
3 4 5 |
# File 'lib/nfl_data/schedule.rb', line 3 def initialize(games: []) super end |
Instance Attribute Details
#games ⇒ Object
Returns the value of attribute games
2 3 4 |
# File 'lib/nfl_data/schedule.rb', line 2 def games @games end |
Instance Method Details
#to_h ⇒ Object
7 8 9 10 |
# File 'lib/nfl_data/schedule.rb', line 7 def to_h games.map!(&:to_h) super end |