Class: Game
Constant Summary
Constants included from Helpers
Instance Attribute Summary collapse
-
#away_team ⇒ Object
readonly
Returns the value of attribute away_team.
-
#home_team ⇒ Object
readonly
Returns the value of attribute home_team.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ Game
constructor
A new instance of Game.
Methods included from Helpers
#boxscore, #build_base_url, #generate_nokogiri_html, #generate_nokogiri_xml, #valid_game?
Constructor Details
Instance Attribute Details
#away_team ⇒ Object (readonly)
Returns the value of attribute away_team.
8 9 10 |
# File 'lib/mlb_gd2/game.rb', line 8 def away_team @away_team end |
#home_team ⇒ Object (readonly)
Returns the value of attribute home_team.
8 9 10 |
# File 'lib/mlb_gd2/game.rb', line 8 def home_team @home_team end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
8 9 10 |
# File 'lib/mlb_gd2/game.rb', line 8 def url @url end |