Class: MLB::LivePlays
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::LivePlays
- Defined in:
- lib/mlb/live_feed.rb
Overview
Represents the plays section of the live feed
Instance Attribute Summary collapse
-
#all_plays ⇒ Array<Play>
Returns all plays in the game.
-
#current_play ⇒ Play
Returns the current play.
-
#scoring_plays ⇒ Array<Integer>
Returns indices of scoring plays.
Instance Attribute Details
#all_plays ⇒ Array<Play>
Returns all plays in the game
16 |
# File 'lib/mlb/live_feed.rb', line 16 attribute :all_plays, Play, collection: true |
#current_play ⇒ Play
Returns the current play
24 |
# File 'lib/mlb/live_feed.rb', line 24 attribute :current_play, Play |
#scoring_plays ⇒ Array<Integer>
Returns indices of scoring plays
32 |
# File 'lib/mlb/live_feed.rb', line 32 attribute :scoring_plays, Shale::Type::Integer, collection: true |