Class: NBA::League
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::League
- Defined in:
- lib/nba/league.rb
Overview
Represents a basketball league
Constant Summary collapse
- NBA =
NBA league ID
"00".freeze
- WNBA =
WNBA league ID
"10".freeze
- G_LEAGUE =
G League (NBA Development League) ID
"20".freeze
Instance Attribute Summary collapse
-
#id ⇒ String
Returns the unique identifier for the league.
-
#name ⇒ String
Returns the name of the league.
Instance Attribute Details
#id ⇒ String
Returns the unique identifier for the league
27 |
# File 'lib/nba/league.rb', line 27 attribute :id, Shale::Type::String |
#name ⇒ String
Returns the name of the league
35 |
# File 'lib/nba/league.rb', line 35 attribute :name, Shale::Type::String |