Class: Big3::Game

Inherits:
Object
  • Object
show all
Defined in:
lib/big_3/game.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_teamObject

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_nameObject

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_playersObject

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_teamObject

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_nameObject

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_playersObject

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

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/big_3/game.rb', line 3

def id
  @id
end

#informationObject

Returns the value of attribute information.



3
4
5
# File 'lib/big_3/game.rb', line 3

def information
  @information
end

#statsObject

Returns the value of attribute stats.



3
4
5
# File 'lib/big_3/game.rb', line 3

def stats
  @stats
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/big_3/game.rb', line 3

def url
  @url
end

Instance Method Details

#dateObject



59
60
61
62
# File 'lib/big_3/game.rb', line 59

def date
  @date = stats["venue"]["@date"]
  @date
end

#locationObject



54
55
56
57
# File 'lib/big_3/game.rb', line 54

def location
  @location = stats["venue"]["@location"]
  @location
end

#venueObject



49
50
51
52
# File 'lib/big_3/game.rb', line 49

def venue
  @venue = stats['venue']
  @venue
end