Class: NbaRb::Player::InGameSplits
- Inherits:
-
PlayerDashboard
- Object
- PlayerDashboard
- NbaRb::Player::InGameSplits
- Defined in:
- lib/nba_rb/player/in_game_splits.rb,
lib/nba_rb/player/player_in_game_splits.rb
Instance Method Summary collapse
- #by_actual_margin ⇒ Object
- #by_half ⇒ Object
- #by_period ⇒ Object
- #by_score_margin ⇒ Object
- #close_games ⇒ Object
- #first_half ⇒ Object
- #first_quarter ⇒ Object
- #fourth_quarter ⇒ Object
- #second_half ⇒ Object
- #second_quarter ⇒ Object
- #third_quarter ⇒ Object
- #tied_games ⇒ Object
Instance Method Details
#by_actual_margin ⇒ Object
50 51 52 |
# File 'lib/nba_rb/player/in_game_splits.rb', line 50 def by_actual_margin create_stats_hash(@data[4]) end |
#by_half ⇒ Object
6 7 8 |
# File 'lib/nba_rb/player/in_game_splits.rb', line 6 def by_half create_stats_hash(@data[1]) end |
#by_period ⇒ Object
18 19 20 |
# File 'lib/nba_rb/player/in_game_splits.rb', line 18 def by_period create_stats_hash(@data[2]) end |
#by_score_margin ⇒ Object
38 39 40 |
# File 'lib/nba_rb/player/in_game_splits.rb', line 38 def by_score_margin create_stats_hash(@data[3]) end |
#close_games ⇒ Object
46 47 48 |
# File 'lib/nba_rb/player/in_game_splits.rb', line 46 def close_games by_score_margin[1] end |
#first_half ⇒ Object
10 11 12 |
# File 'lib/nba_rb/player/in_game_splits.rb', line 10 def first_half by_half[0] end |
#first_quarter ⇒ Object
22 23 24 |
# File 'lib/nba_rb/player/in_game_splits.rb', line 22 def first_quarter by_period[0] end |
#fourth_quarter ⇒ Object
34 35 36 |
# File 'lib/nba_rb/player/in_game_splits.rb', line 34 def fourth_quarter by_period[3] end |
#second_half ⇒ Object
14 15 16 |
# File 'lib/nba_rb/player/in_game_splits.rb', line 14 def second_half by_half[1] end |
#second_quarter ⇒ Object
26 27 28 |
# File 'lib/nba_rb/player/in_game_splits.rb', line 26 def second_quarter by_period[1] end |
#third_quarter ⇒ Object
30 31 32 |
# File 'lib/nba_rb/player/in_game_splits.rb', line 30 def third_quarter by_period[2] end |
#tied_games ⇒ Object
42 43 44 |
# File 'lib/nba_rb/player/in_game_splits.rb', line 42 def tied_games by_score_margin[0] end |