Class: Fantasydata::BoxScore

Inherits:
Base
  • Object
show all
Defined in:
lib/fantasydata/box_score.rb

Instance Method Summary collapse

Methods inherited from Base

#==, attr_reader, #attrs, #initialize, #update

Constructor Details

This class inherits a constructor from Fantasydata::Base

Instance Method Details

#away_defenseObject



6
7
8
# File 'lib/fantasydata/box_score.rb', line 6

def away_defense
  @away_defense ||= map_collection(Fantasydata::Boxscore::PlayerDefenseStat, :away_defense)
end

#away_fantasy_defenseObject



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

#away_kick_punt_returnsObject



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

#away_kickingObject



18
19
20
# File 'lib/fantasydata/box_score.rb', line 18

def away_kicking
  @away_kicking ||= map_collection(Fantasydata::Boxscore::KickingStat, :away_kicking)
end

#away_passingObject



22
23
24
# File 'lib/fantasydata/box_score.rb', line 22

def away_passing
  @away_passing ||= map_collection(Fantasydata::Boxscore::PassingStat, :away_passing)
end

#away_puntingObject



26
27
28
# File 'lib/fantasydata/box_score.rb', line 26

def away_punting
  @away_punting ||= map_collection(Fantasydata::Boxscore::PuntingStat, :away_punting)
end

#away_receivingObject



30
31
32
# File 'lib/fantasydata/box_score.rb', line 30

def away_receiving
  @away_receiving ||= map_collection(Fantasydata::Boxscore::ReceivingStat, :away_receiving)
end

#away_rushingObject



34
35
36
# File 'lib/fantasydata/box_score.rb', line 34

def away_rushing
  @away_rushing ||= map_collection(Fantasydata::Boxscore::RushingStat, :away_rushing)
end

#gameObject



38
39
40
# File 'lib/fantasydata/box_score.rb', line 38

def game
  @game ||= Fantasydata::GameStat.new(@attrs[:game])
end

#home_defenseObject



42
43
44
# File 'lib/fantasydata/box_score.rb', line 42

def home_defense
  @home_defense ||= map_collection(Fantasydata::Boxscore::PlayerDefenseStat, :home_defense)
end

#home_fantasy_defenseObject



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

#home_kick_punt_returnsObject



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

#home_kickingObject



54
55
56
# File 'lib/fantasydata/box_score.rb', line 54

def home_kicking
  @home_kicking ||= map_collection(Fantasydata::Boxscore::KickingStat, :home_kicking)
end

#home_passingObject



58
59
60
# File 'lib/fantasydata/box_score.rb', line 58

def home_passing
  @home_passing ||= map_collection(Fantasydata::Boxscore::PassingStat, :home_passing)
end

#home_puntingObject



62
63
64
# File 'lib/fantasydata/box_score.rb', line 62

def home_punting
  @home_punting ||= map_collection(Fantasydata::Boxscore::PuntingStat, :home_punting)
end

#home_receivingObject



66
67
68
# File 'lib/fantasydata/box_score.rb', line 66

def home_receiving
  @home_receiving ||= map_collection(Fantasydata::Boxscore::ReceivingStat, :home_receiving)
end

#home_rushingObject



70
71
72
# File 'lib/fantasydata/box_score.rb', line 70

def home_rushing
  @home_rushing ||= map_collection(Fantasydata::Boxscore::RushingStat, :home_rushing)
end

#scoreObject



74
75
76
# File 'lib/fantasydata/box_score.rb', line 74

def score
  @score ||= Fantasydata::Boxscore::Score.new(@attrs[:score])
end

#scoring_detailsObject



78
79
80
# File 'lib/fantasydata/box_score.rb', line 78

def scoring_details
  @scoring_details ||= map_collection(Fantasydata::ScoringDetail, :scoring_details)
end

#scoring_playsObject



82
83
84
# File 'lib/fantasydata/box_score.rb', line 82

def scoring_plays
  @scoring_plays ||= map_collection(Fantasydata::Boxscore::ScoringPlay, :scoring_plays)
end