Class: Gameday::BoxScore

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/gameday/box_score.rb

Instance Method Summary collapse

Constructor Details

#initialize(boxscore_response_obj) ⇒ BoxScore

Returns a new instance of BoxScore.



10
11
12
# File 'lib/gameday/box_score.rb', line 10

def initialize(boxscore_response_obj)
  @response_obj = boxscore_response_obj
end

Instance Method Details

#__getobj__Object



6
7
8
# File 'lib/gameday/box_score.rb', line 6

def __getobj__
  @response_obj
end

#away_teamObject



18
19
20
# File 'lib/gameday/box_score.rb', line 18

def away_team
  self["away_fname"]
end

#game_infoObject



22
23
24
# File 'lib/gameday/box_score.rb', line 22

def game_info
  Gameday::GameInfo.new(self["game_info"])
end

#home_teamObject



14
15
16
# File 'lib/gameday/box_score.rb', line 14

def home_team
  self["home_fname"]
end