Class: NBA::BoxScoreSummaryV3Data
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::BoxScoreSummaryV3Data
- Defined in:
- lib/nba/box_score_summary_v3_data.rb
Overview
Represents game summary information from V3 API
Instance Attribute Summary collapse
-
#arena_city ⇒ String
Returns the arena city.
-
#arena_country ⇒ String
Returns the arena country.
-
#arena_id ⇒ Integer
Returns the arena ID.
-
#arena_name ⇒ String
Returns the arena name.
-
#arena_state ⇒ String
Returns the arena state.
-
#arena_timezone ⇒ String
Returns the arena timezone.
-
#attendance ⇒ Integer
Returns the attendance.
-
#away_pts ⇒ Integer
Returns away team total points.
-
#away_pts_q1 ⇒ Integer
Returns away team Q1 points.
-
#away_pts_q2 ⇒ Integer
Returns away team Q2 points.
-
#away_pts_q3 ⇒ Integer
Returns away team Q3 points.
-
#away_pts_q4 ⇒ Integer
Returns away team Q4 points.
-
#away_team_city ⇒ String
Returns the away team city.
-
#away_team_id ⇒ Integer
Returns the away team ID.
-
#away_team_losses ⇒ Integer
Returns the away team losses.
-
#away_team_name ⇒ String
Returns the away team name.
-
#away_team_slug ⇒ String
Returns the away team slug.
-
#away_team_tricode ⇒ String
Returns the away team tricode.
-
#away_team_wins ⇒ Integer
Returns the away team wins.
-
#duration ⇒ Integer
Returns the game duration in minutes.
-
#game_clock ⇒ String
Returns the game clock time.
-
#game_code ⇒ String
Returns the game code.
-
#game_et ⇒ String
Returns the game time in Eastern Time.
-
#game_id ⇒ String
Returns the game ID.
-
#game_status ⇒ Integer
Returns the game status ID.
-
#game_status_text ⇒ String
Returns the game status text.
-
#game_time_utc ⇒ String
Returns the game time in UTC.
-
#home_pts ⇒ Integer
Returns home team total points.
-
#home_pts_q1 ⇒ Integer
Returns home team Q1 points.
-
#home_pts_q2 ⇒ Integer
Returns home team Q2 points.
-
#home_pts_q3 ⇒ Integer
Returns home team Q3 points.
-
#home_pts_q4 ⇒ Integer
Returns home team Q4 points.
-
#home_team_city ⇒ String
Returns the home team city.
-
#home_team_id ⇒ Integer
Returns the home team ID.
-
#home_team_losses ⇒ Integer
Returns the home team losses.
-
#home_team_name ⇒ String
Returns the home team name.
-
#home_team_slug ⇒ String
Returns the home team slug.
-
#home_team_tricode ⇒ String
Returns the home team tricode.
-
#home_team_wins ⇒ Integer
Returns the home team wins.
-
#largest_lead ⇒ Integer
Returns the largest lead.
-
#lead_changes ⇒ Integer
Returns the number of lead changes.
-
#officials ⇒ Array<String>
Returns the game officials.
-
#period ⇒ Integer
Returns the current period.
-
#sellout ⇒ String
Returns the sellout status.
-
#times_tied ⇒ Integer
Returns the number of times tied.
Instance Method Summary collapse
-
#away_team ⇒ Team?
Returns the away team object.
-
#final? ⇒ Boolean
Returns whether the game is final.
-
#home_team ⇒ Team?
Returns the home team object.
-
#in_progress? ⇒ Boolean
Returns whether the game is in progress.
-
#scheduled? ⇒ Boolean
Returns whether the game has not started.
Instance Attribute Details
#arena_city ⇒ String
Returns the arena city
119 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 119 attribute :arena_city, Shale::Type::String |
#arena_country ⇒ String
Returns the arena country
135 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 135 attribute :arena_country, Shale::Type::String |
#arena_id ⇒ Integer
Returns the arena ID
103 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 103 attribute :arena_id, Shale::Type::Integer |
#arena_name ⇒ String
Returns the arena name
111 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 111 attribute :arena_name, Shale::Type::String |
#arena_state ⇒ String
Returns the arena state
127 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 127 attribute :arena_state, Shale::Type::String |
#arena_timezone ⇒ String
Returns the arena timezone
143 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 143 attribute :arena_timezone, Shale::Type::String |
#attendance ⇒ Integer
Returns the attendance
87 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 87 attribute :attendance, Shale::Type::Integer |
#away_pts ⇒ Integer
Returns away team total points
303 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 303 attribute :away_pts, Shale::Type::Integer |
#away_pts_q1 ⇒ Integer
Returns away team Q1 points
311 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 311 attribute :away_pts_q1, Shale::Type::Integer |
#away_pts_q2 ⇒ Integer
Returns away team Q2 points
319 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 319 attribute :away_pts_q2, Shale::Type::Integer |
#away_pts_q3 ⇒ Integer
Returns away team Q3 points
327 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 327 attribute :away_pts_q3, Shale::Type::Integer |
#away_pts_q4 ⇒ Integer
Returns away team Q4 points
335 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 335 attribute :away_pts_q4, Shale::Type::Integer |
#away_team_city ⇒ String
Returns the away team city
263 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 263 attribute :away_team_city, Shale::Type::String |
#away_team_id ⇒ Integer
Returns the away team ID
247 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 247 attribute :away_team_id, Shale::Type::Integer |
#away_team_losses ⇒ Integer
Returns the away team losses
295 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 295 attribute :away_team_losses, Shale::Type::Integer |
#away_team_name ⇒ String
Returns the away team name
255 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 255 attribute :away_team_name, Shale::Type::String |
#away_team_slug ⇒ String
Returns the away team slug
279 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 279 attribute :away_team_slug, Shale::Type::String |
#away_team_tricode ⇒ String
Returns the away team tricode
271 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 271 attribute :away_team_tricode, Shale::Type::String |
#away_team_wins ⇒ Integer
Returns the away team wins
287 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 287 attribute :away_team_wins, Shale::Type::Integer |
#duration ⇒ Integer
Returns the game duration in minutes
79 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 79 attribute :duration, Shale::Type::Integer |
#game_clock ⇒ String
Returns the game clock time
55 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 55 attribute :game_clock, Shale::Type::String |
#game_code ⇒ String
Returns the game code
23 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 23 attribute :game_code, Shale::Type::String |
#game_et ⇒ String
Returns the game time in Eastern Time
71 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 71 attribute :game_et, Shale::Type::String |
#game_id ⇒ String
Returns the game ID
15 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 15 attribute :game_id, Shale::Type::String |
#game_status ⇒ Integer
Returns the game status ID
31 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 31 attribute :game_status, Shale::Type::Integer |
#game_status_text ⇒ String
Returns the game status text
39 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 39 attribute :game_status_text, Shale::Type::String |
#game_time_utc ⇒ String
Returns the game time in UTC
63 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 63 attribute :game_time_utc, Shale::Type::String |
#home_pts ⇒ Integer
Returns home team total points
207 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 207 attribute :home_pts, Shale::Type::Integer |
#home_pts_q1 ⇒ Integer
Returns home team Q1 points
215 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 215 attribute :home_pts_q1, Shale::Type::Integer |
#home_pts_q2 ⇒ Integer
Returns home team Q2 points
223 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 223 attribute :home_pts_q2, Shale::Type::Integer |
#home_pts_q3 ⇒ Integer
Returns home team Q3 points
231 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 231 attribute :home_pts_q3, Shale::Type::Integer |
#home_pts_q4 ⇒ Integer
Returns home team Q4 points
239 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 239 attribute :home_pts_q4, Shale::Type::Integer |
#home_team_city ⇒ String
Returns the home team city
167 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 167 attribute :home_team_city, Shale::Type::String |
#home_team_id ⇒ Integer
Returns the home team ID
151 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 151 attribute :home_team_id, Shale::Type::Integer |
#home_team_losses ⇒ Integer
Returns the home team losses
199 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 199 attribute :home_team_losses, Shale::Type::Integer |
#home_team_name ⇒ String
Returns the home team name
159 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 159 attribute :home_team_name, Shale::Type::String |
#home_team_slug ⇒ String
Returns the home team slug
183 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 183 attribute :home_team_slug, Shale::Type::String |
#home_team_tricode ⇒ String
Returns the home team tricode
175 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 175 attribute :home_team_tricode, Shale::Type::String |
#home_team_wins ⇒ Integer
Returns the home team wins
191 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 191 attribute :home_team_wins, Shale::Type::Integer |
#largest_lead ⇒ Integer
Returns the largest lead
359 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 359 attribute :largest_lead, Shale::Type::Integer |
#lead_changes ⇒ Integer
Returns the number of lead changes
343 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 343 attribute :lead_changes, Shale::Type::Integer |
#officials ⇒ Array<String>
Returns the game officials
367 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 367 attribute :officials, Shale::Type::String, collection: true |
#period ⇒ Integer
Returns the current period
47 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 47 attribute :period, Shale::Type::Integer |
#sellout ⇒ String
Returns the sellout status
95 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 95 attribute :sellout, Shale::Type::String |
#times_tied ⇒ Integer
Returns the number of times tied
351 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 351 attribute :times_tied, Shale::Type::Integer |
Instance Method Details
#away_team ⇒ Team?
Returns the away team object
385 386 387 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 385 def away_team Teams.find(away_team_id) end |
#final? ⇒ Boolean
Returns whether the game is final
395 396 397 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 395 def final? game_status.eql?(3) end |
#home_team ⇒ Team?
Returns the home team object
375 376 377 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 375 def home_team Teams.find(home_team_id) end |
#in_progress? ⇒ Boolean
Returns whether the game is in progress
405 406 407 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 405 def in_progress? game_status.eql?(2) end |
#scheduled? ⇒ Boolean
Returns whether the game has not started
415 416 417 |
# File 'lib/nba/box_score_summary_v3_data.rb', line 415 def scheduled? game_status.eql?(1) end |