Class: Fantasydata::BoxScore
- Inherits:
-
Base
- Object
- Base
- Fantasydata::BoxScore
show all
- Defined in:
- lib/fantasydata/box_score.rb
Instance Method Summary
collapse
Methods inherited from Base
#==, attr_reader, #attrs, #initialize, #update
Instance Method Details
#away_defense ⇒ Object
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_defense ⇒ Object
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_returns ⇒ Object
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_kicking ⇒ Object
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_passing ⇒ Object
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_punting ⇒ Object
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_receiving ⇒ Object
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_rushing ⇒ Object
34
35
36
|
# File 'lib/fantasydata/box_score.rb', line 34
def away_rushing
@away_rushing ||= map_collection(Fantasydata::Boxscore::RushingStat, :away_rushing)
end
|
#game ⇒ Object
38
39
40
|
# File 'lib/fantasydata/box_score.rb', line 38
def game
@game ||= Fantasydata::GameStat.new(@attrs[:game])
end
|
#home_defense ⇒ Object
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_defense ⇒ Object
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_returns ⇒ Object
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_kicking ⇒ Object
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_passing ⇒ Object
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_punting ⇒ Object
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_receiving ⇒ Object
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_rushing ⇒ Object
70
71
72
|
# File 'lib/fantasydata/box_score.rb', line 70
def home_rushing
@home_rushing ||= map_collection(Fantasydata::Boxscore::RushingStat, :home_rushing)
end
|
#score ⇒ Object
74
75
76
|
# File 'lib/fantasydata/box_score.rb', line 74
def score
@score ||= Fantasydata::Boxscore::Score.new(@attrs[:score])
end
|
#scoring_details ⇒ Object
78
79
80
|
# File 'lib/fantasydata/box_score.rb', line 78
def scoring_details
@scoring_details ||= map_collection(Fantasydata::ScoringDetail, :scoring_details)
end
|
#scoring_plays ⇒ Object
82
83
84
|
# File 'lib/fantasydata/box_score.rb', line 82
def scoring_plays
@scoring_plays ||= map_collection(Fantasydata::Boxscore::ScoringPlay, :scoring_plays)
end
|