Class: NbaRb::Team::Lineups
- Inherits:
-
Object
- Object
- NbaRb::Team::Lineups
- Defined in:
- lib/nba_rb/team/lineups.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#date_from ⇒ Object
Returns the value of attribute date_from.
-
#date_to ⇒ Object
Returns the value of attribute date_to.
-
#game_id ⇒ Object
Returns the value of attribute game_id.
-
#game_segment ⇒ Object
Returns the value of attribute game_segment.
-
#group_quantity ⇒ Object
Returns the value of attribute group_quantity.
-
#last_n_games ⇒ Object
Returns the value of attribute last_n_games.
-
#location ⇒ Object
Returns the value of attribute location.
-
#measure_type ⇒ Object
Returns the value of attribute measure_type.
-
#month ⇒ Object
Returns the value of attribute month.
-
#opponent_team_id ⇒ Object
Returns the value of attribute opponent_team_id.
-
#outcome ⇒ Object
Returns the value of attribute outcome.
-
#pace_adjust ⇒ Object
Returns the value of attribute pace_adjust.
-
#per_mode ⇒ Object
Returns the value of attribute per_mode.
-
#period ⇒ Object
Returns the value of attribute period.
-
#plus_minus ⇒ Object
Returns the value of attribute plus_minus.
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#season ⇒ Object
Returns the value of attribute season.
-
#season_segment ⇒ Object
Returns the value of attribute season_segment.
-
#season_type ⇒ Object
Returns the value of attribute season_type.
-
#team_id ⇒ Object
Returns the value of attribute team_id.
-
#vs_conference ⇒ Object
Returns the value of attribute vs_conference.
-
#vs_division ⇒ Object
Returns the value of attribute vs_division.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Lineups
constructor
A new instance of Lineups.
- #lineups ⇒ Object
- #overall ⇒ Object
Constructor Details
#initialize(*args) ⇒ Lineups
Returns a new instance of Lineups.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/nba_rb/team/lineups.rb', line 28 def initialize(*args) super(*args) @game_id ||= '' @group_quantity ||= NbaRb::GroupQuantity.default @season ||= NbaRb::CURRENT_SEASON @season_type ||= NbaRb::SeasonType.default @measure_type ||= NbaRb::MeasureType.default @per_mode ||= NbaRb::PerMode.default @plus_minus ||= NbaRb::PlusMinus.default @pace_adjust ||= NbaRb::PaceAdjust.default @rank ||= NbaRb::Rank.default @outcome ||= NbaRb::Outcome.default @location ||= NbaRb::Location.default @month ||= NbaRb::Month.default @season_segment ||= NbaRb::SeasonSegment.default @date_from ||= NbaRb::DateFrom.default @date_to ||= NbaRb::DateTo.default @opponent_team_id ||= NbaRb::OpponentTeamID.default @vs_conference ||= NbaRb::VsConference.default @vs_division ||= NbaRb::VsDivision.default @game_segment ||= NbaRb::GameSegment.default @period ||= NbaRb::Period.default @last_n_games ||= NbaRb::LastNGames.default res = stats_request('teamdashlineups', 'GroupQuantity' => group_quantity, 'GameID' => game_id, 'TeamID' => team_id, 'Season' => season, 'SeasonType' => season_type, 'MeasureType' => measure_type, 'PerMode' => per_mode, 'PlusMinus' => plus_minus, 'PaceAdjust' => pace_adjust, 'Rank' => rank, 'Outcome' => outcome, 'Location' => location, 'Month' => month, 'SeasonSegment' => season_segment, 'DateFrom' => date_from, 'DateTo' => date_to, 'OpponentTeamID' => opponent_team_id, 'VsConference' => vs_conference, 'VsDivision' => vs_division, 'GameSegment' => game_segment, 'Period' => period, 'LastNGames' => last_n_games) @data = res['resultSets'] end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def data @data end |
#date_from ⇒ Object
Returns the value of attribute date_from.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def date_from @date_from end |
#date_to ⇒ Object
Returns the value of attribute date_to.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def date_to @date_to end |
#game_id ⇒ Object
Returns the value of attribute game_id.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def game_id @game_id end |
#game_segment ⇒ Object
Returns the value of attribute game_segment.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def game_segment @game_segment end |
#group_quantity ⇒ Object
Returns the value of attribute group_quantity.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def group_quantity @group_quantity end |
#last_n_games ⇒ Object
Returns the value of attribute last_n_games.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def last_n_games @last_n_games end |
#location ⇒ Object
Returns the value of attribute location.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def location @location end |
#measure_type ⇒ Object
Returns the value of attribute measure_type.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def measure_type @measure_type end |
#month ⇒ Object
Returns the value of attribute month.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def month @month end |
#opponent_team_id ⇒ Object
Returns the value of attribute opponent_team_id.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def opponent_team_id @opponent_team_id end |
#outcome ⇒ Object
Returns the value of attribute outcome.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def outcome @outcome end |
#pace_adjust ⇒ Object
Returns the value of attribute pace_adjust.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def pace_adjust @pace_adjust end |
#per_mode ⇒ Object
Returns the value of attribute per_mode.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def per_mode @per_mode end |
#period ⇒ Object
Returns the value of attribute period.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def period @period end |
#plus_minus ⇒ Object
Returns the value of attribute plus_minus.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def plus_minus @plus_minus end |
#rank ⇒ Object
Returns the value of attribute rank.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def rank @rank end |
#season ⇒ Object
Returns the value of attribute season.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def season @season end |
#season_segment ⇒ Object
Returns the value of attribute season_segment.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def season_segment @season_segment end |
#season_type ⇒ Object
Returns the value of attribute season_type.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def season_type @season_type end |
#team_id ⇒ Object
Returns the value of attribute team_id.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def team_id @team_id end |
#vs_conference ⇒ Object
Returns the value of attribute vs_conference.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def vs_conference @vs_conference end |
#vs_division ⇒ Object
Returns the value of attribute vs_division.
4 5 6 |
# File 'lib/nba_rb/team/lineups.rb', line 4 def vs_division @vs_division end |
Instance Method Details
#lineups ⇒ Object
83 84 85 |
# File 'lib/nba_rb/team/lineups.rb', line 83 def lineups create_stats_hash(@data[1]) end |
#overall ⇒ Object
79 80 81 |
# File 'lib/nba_rb/team/lineups.rb', line 79 def overall create_stats_hash(@data[0]) end |