Class: Gameday::BoxScore
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Gameday::BoxScore
- Defined in:
- lib/gameday/box_score.rb
Instance Method Summary collapse
- #__getobj__ ⇒ Object
- #away_team ⇒ Object
- #game_info ⇒ Object
- #home_team ⇒ Object
-
#initialize(boxscore_response_obj) ⇒ BoxScore
constructor
A new instance of BoxScore.
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_team ⇒ Object
18 19 20 |
# File 'lib/gameday/box_score.rb', line 18 def away_team self["away_fname"] end |
#game_info ⇒ Object
22 23 24 |
# File 'lib/gameday/box_score.rb', line 22 def game_info Gameday::GameInfo.new(self["game_info"]) end |
#home_team ⇒ Object
14 15 16 |
# File 'lib/gameday/box_score.rb', line 14 def home_team self["home_fname"] end |