Class: Big3::Game
- Inherits:
-
Object
- Object
- Big3::Game
- Defined in:
- lib/big_3/game.rb
Instance Attribute Summary collapse
-
#away_team ⇒ Object
Returns the value of attribute away_team.
-
#away_team_name ⇒ Object
Returns the value of attribute away_team_name.
-
#away_team_players ⇒ Object
Returns the value of attribute away_team_players.
-
#home_team ⇒ Object
Returns the value of attribute home_team.
-
#home_team_name ⇒ Object
Returns the value of attribute home_team_name.
-
#home_team_players ⇒ Object
Returns the value of attribute home_team_players.
-
#id ⇒ Object
Returns the value of attribute id.
-
#information ⇒ Object
Returns the value of attribute information.
-
#stats ⇒ Object
Returns the value of attribute stats.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #date ⇒ Object
-
#initialize(id) ⇒ Game
constructor
A new instance of Game.
- #location ⇒ Object
- #venue ⇒ Object
Constructor Details
#initialize(id) ⇒ Game
Returns a new instance of Game.
5 6 7 |
# File 'lib/big_3/game.rb', line 5 def initialize(id) @id = id end |
Instance Attribute Details
#away_team ⇒ Object
Returns the value of attribute away_team.
3 4 5 |
# File 'lib/big_3/game.rb', line 3 def away_team @away_team end |
#away_team_name ⇒ Object
Returns the value of attribute away_team_name.
3 4 5 |
# File 'lib/big_3/game.rb', line 3 def away_team_name @away_team_name end |
#away_team_players ⇒ Object
Returns the value of attribute away_team_players.
3 4 5 |
# File 'lib/big_3/game.rb', line 3 def away_team_players @away_team_players end |
#home_team ⇒ Object
Returns the value of attribute home_team.
3 4 5 |
# File 'lib/big_3/game.rb', line 3 def home_team @home_team end |
#home_team_name ⇒ Object
Returns the value of attribute home_team_name.
3 4 5 |
# File 'lib/big_3/game.rb', line 3 def home_team_name @home_team_name end |
#home_team_players ⇒ Object
Returns the value of attribute home_team_players.
3 4 5 |
# File 'lib/big_3/game.rb', line 3 def home_team_players @home_team_players end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/big_3/game.rb', line 3 def id @id end |
#information ⇒ Object
Returns the value of attribute information.
3 4 5 |
# File 'lib/big_3/game.rb', line 3 def information @information end |
#stats ⇒ Object
Returns the value of attribute stats.
3 4 5 |
# File 'lib/big_3/game.rb', line 3 def stats @stats end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/big_3/game.rb', line 3 def url @url end |
Instance Method Details
#date ⇒ Object
59 60 61 62 |
# File 'lib/big_3/game.rb', line 59 def date @date = stats["venue"]["@date"] @date end |
#location ⇒ Object
54 55 56 57 |
# File 'lib/big_3/game.rb', line 54 def location @location = stats["venue"]["@location"] @location end |
#venue ⇒ Object
49 50 51 52 |
# File 'lib/big_3/game.rb', line 49 def venue @venue = stats['venue'] @venue end |