Class: MLB::ScheduleDate
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::ScheduleDate
- Defined in:
- lib/mlb/schedule_date.rb
Overview
Represents a date within a schedule response
Instance Attribute Summary collapse
-
#date ⇒ Date
Returns the date.
-
#games ⇒ Array<ScheduledGame>
Returns the games scheduled for this date.
-
#total_games ⇒ Integer
Returns the total number of games on this date.
Instance Attribute Details
#date ⇒ Date
Returns the date
13 |
# File 'lib/mlb/schedule_date.rb', line 13 attribute :date, Shale::Type::Date |
#games ⇒ Array<ScheduledGame>
Returns the games scheduled for this date
29 |
# File 'lib/mlb/schedule_date.rb', line 29 attribute :games, ScheduledGame, collection: true |
#total_games ⇒ Integer
Returns the total number of games on this date
21 |
# File 'lib/mlb/schedule_date.rb', line 21 attribute :total_games, Shale::Type::Integer |