Class: Sportradar::Api::Basketball::Nba::Game

Inherits:
Game
  • Object
show all
Defined in:
lib/sportradar/api/basketball/nba/game.rb

Instance Attribute Summary

Attributes inherited from Game

#attendance, #away_id, #broadcast, #changes, #clock, #coverage, #duration, #home_id, #id, #media_timeouts, #period, #player_stats, #response, #scheduled, #score, #status, #team_stats, #time_zone, #title, #venue

Instance Method Summary collapse

Methods inherited from Game

#assign_away, #assign_home, #away, #box, #cancelled?, #changed?, #check_newness, #clock_display, #clock_seconds, #closed?, #completed?, #finished?, #future?, #get_box, #get_pbp, #get_summary, #halftime?, #home, #ingest_box, #ingest_pbp, #ingest_summary, #initialize, #leading_team, #leading_team_id, #not_updated?, #parse_score, #path_base, #path_box, #path_pbp, #path_summary, #pbp, #period_display, #period_display_long, #periods, #plays, #plays_by_type, #points, #postponed?, #queue_pbp, #queue_summary, #realtime_state, #remember, #scoring, #set_pbp, #started?, #stats, #summary, #team, #tied?, #timeouts, #unnecessary?, #update, #update_player_stats, #update_score, #update_stats

Methods inherited from Data

#all_attributes, #attributes, #create_data, #parse_into_array, #parse_into_array_with_options, #parse_out_hashes, #structure_links, #update_data

Constructor Details

This class inherits a constructor from Sportradar::Api::Basketball::Game

Instance Method Details

#apiObject



22
23
24
# File 'lib/sportradar/api/basketball/nba/game.rb', line 22

def api
  @api ||= Sportradar::Api::Basketball::Nba::Api.new
end

#period_classObject



12
13
14
# File 'lib/sportradar/api/basketball/nba/game.rb', line 12

def period_class
  Quarter
end

#period_nameObject



16
17
18
# File 'lib/sportradar/api/basketball/nba/game.rb', line 16

def period_name
  'quarter'
end

#sim!Object



26
27
28
29
# File 'lib/sportradar/api/basketball/nba/game.rb', line 26

def sim!
  @api = api.sim!
  self
end

#team_classObject

NBA specific



9
10
11
# File 'lib/sportradar/api/basketball/nba/game.rb', line 9

def team_class
  Team
end