Class: MLB::LiveData

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

Overview

Represents the live data section of the feed

Instance Attribute Summary collapse

Instance Attribute Details

#boxscoreBoxscore

Returns the boxscore

Examples:

live_data.boxscore #=> #<MLB::Boxscore>

Returns:



65
# File 'lib/mlb/live_feed.rb', line 65

attribute :boxscore, Boxscore

#linescoreLinescore

Returns the linescore

Examples:

live_data.linescore #=> #<MLB::Linescore>

Returns:



57
# File 'lib/mlb/live_feed.rb', line 57

attribute :linescore, Linescore

#playsLivePlays

Returns the plays data

Examples:

live_data.plays #=> #<MLB::LivePlays>

Returns:



49
# File 'lib/mlb/live_feed.rb', line 49

attribute :plays, LivePlays