Class: Fantasydata::BoxScore
Instance Method Summary collapse
- #away_defense ⇒ Object
- #away_fantasy_defense ⇒ Object
- #away_kick_punt_returns ⇒ Object
- #away_kicking ⇒ Object
- #away_passing ⇒ Object
- #away_punting ⇒ Object
- #away_receiving ⇒ Object
- #away_rushing ⇒ Object
- #game ⇒ Object
- #home_defense ⇒ Object
- #home_fantasy_defense ⇒ Object
- #home_kick_punt_returns ⇒ Object
- #home_kicking ⇒ Object
- #home_passing ⇒ Object
- #home_punting ⇒ Object
- #home_receiving ⇒ Object
- #home_rushing ⇒ Object
- #score ⇒ Object
- #scoring_details ⇒ Object
- #scoring_plays ⇒ Object
Methods inherited from Base
#==, attr_reader, #attrs, #initialize, #update
Constructor Details
This class inherits a constructor from Fantasydata::Base
Instance Method Details
permalink #away_defense ⇒ Object
[View source]
6 7 8 |
# File 'lib/fantasydata/box_score.rb', line 6 def away_defense @away_defense ||= map_collection(Fantasydata::Boxscore::PlayerDefenseStat, :away_defense) end |
permalink #away_fantasy_defense ⇒ Object
[View source]
10 11 12 |
# File 'lib/fantasydata/box_score.rb', line 10 def away_fantasy_defense @away_fantasy_defense ||= Fantasydata::Boxscore::TeamDefenseStat.new(@attrs[:away_fantasy_defense]) end |
permalink #away_kick_punt_returns ⇒ Object
[View source]
14 15 16 |
# File 'lib/fantasydata/box_score.rb', line 14 def away_kick_punt_returns @away_kick_punt_returns ||= map_collection(Fantasydata::Boxscore::ReturnStat, :away_kick_punt_returns) end |
permalink #away_kicking ⇒ Object
[View source]
18 19 20 |
# File 'lib/fantasydata/box_score.rb', line 18 def away_kicking @away_kicking ||= map_collection(Fantasydata::Boxscore::KickingStat, :away_kicking) end |
permalink #away_passing ⇒ Object
[View source]
22 23 24 |
# File 'lib/fantasydata/box_score.rb', line 22 def away_passing @away_passing ||= map_collection(Fantasydata::Boxscore::PassingStat, :away_passing) end |
permalink #away_punting ⇒ Object
[View source]
26 27 28 |
# File 'lib/fantasydata/box_score.rb', line 26 def away_punting @away_punting ||= map_collection(Fantasydata::Boxscore::PuntingStat, :away_punting) end |
permalink #away_receiving ⇒ Object
[View source]
30 31 32 |
# File 'lib/fantasydata/box_score.rb', line 30 def away_receiving @away_receiving ||= map_collection(Fantasydata::Boxscore::ReceivingStat, :away_receiving) end |
permalink #away_rushing ⇒ Object
[View source]
34 35 36 |
# File 'lib/fantasydata/box_score.rb', line 34 def away_rushing @away_rushing ||= map_collection(Fantasydata::Boxscore::RushingStat, :away_rushing) end |
permalink #game ⇒ Object
[View source]
38 39 40 |
# File 'lib/fantasydata/box_score.rb', line 38 def game @game ||= Fantasydata::GameStat.new(@attrs[:game]) end |
permalink #home_defense ⇒ Object
[View source]
42 43 44 |
# File 'lib/fantasydata/box_score.rb', line 42 def home_defense @home_defense ||= map_collection(Fantasydata::Boxscore::PlayerDefenseStat, :home_defense) end |
permalink #home_fantasy_defense ⇒ Object
[View source]
46 47 48 |
# File 'lib/fantasydata/box_score.rb', line 46 def home_fantasy_defense @home_fantasy_defense ||= Fantasydata::Boxscore::TeamDefenseStat.new(@attrs[:home_fantasy_defense]) end |
permalink #home_kick_punt_returns ⇒ Object
[View source]
50 51 52 |
# File 'lib/fantasydata/box_score.rb', line 50 def home_kick_punt_returns @home_kick_punt_returns ||= map_collection(Fantasydata::Boxscore::ReturnStat, :home_kick_punt_returns) end |
permalink #home_kicking ⇒ Object
[View source]
54 55 56 |
# File 'lib/fantasydata/box_score.rb', line 54 def home_kicking @home_kicking ||= map_collection(Fantasydata::Boxscore::KickingStat, :home_kicking) end |
permalink #home_passing ⇒ Object
[View source]
58 59 60 |
# File 'lib/fantasydata/box_score.rb', line 58 def home_passing @home_passing ||= map_collection(Fantasydata::Boxscore::PassingStat, :home_passing) end |
permalink #home_punting ⇒ Object
[View source]
62 63 64 |
# File 'lib/fantasydata/box_score.rb', line 62 def home_punting @home_punting ||= map_collection(Fantasydata::Boxscore::PuntingStat, :home_punting) end |
permalink #home_receiving ⇒ Object
[View source]
66 67 68 |
# File 'lib/fantasydata/box_score.rb', line 66 def home_receiving @home_receiving ||= map_collection(Fantasydata::Boxscore::ReceivingStat, :home_receiving) end |
permalink #home_rushing ⇒ Object
[View source]
70 71 72 |
# File 'lib/fantasydata/box_score.rb', line 70 def home_rushing @home_rushing ||= map_collection(Fantasydata::Boxscore::RushingStat, :home_rushing) end |
permalink #score ⇒ Object
[View source]
74 75 76 |
# File 'lib/fantasydata/box_score.rb', line 74 def score @score ||= Fantasydata::Boxscore::Score.new(@attrs[:score]) end |
permalink #scoring_details ⇒ Object
[View source]
78 79 80 |
# File 'lib/fantasydata/box_score.rb', line 78 def scoring_details @scoring_details ||= map_collection(Fantasydata::ScoringDetail, :scoring_details) end |
permalink #scoring_plays ⇒ Object
[View source]
82 83 84 |
# File 'lib/fantasydata/box_score.rb', line 82 def scoring_plays @scoring_plays ||= map_collection(Fantasydata::Boxscore::ScoringPlay, :scoring_plays) end |