Class: MLB::ChangedGameDate

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/mlb/game_changes.rb

Overview

Groups changed games by date

Instance Attribute Summary collapse

Instance Attribute Details

#dateString

Returns the date string

Examples:

date_entry.date #=> "2024-06-15"


29
# File 'lib/mlb/game_changes.rb', line 29

attribute :date, Shale::Type::String

#gamesArray<ChangedGame>

Returns the games that changed on this date

Examples:

date_entry.games #=> [#<MLB::ChangedGame>, ...]


37
# File 'lib/mlb/game_changes.rb', line 37

attribute :games, ChangedGame, collection: true