Class: SC2League
- Inherits:
-
Object
- Object
- SC2League
- Defined in:
- lib/sc2stats.rb
Constant Summary collapse
- LEAGUES =
["no league", "bronze", "silver", "gold", "platinum", "diamond", "master", "grand master"]
Instance Method Summary collapse
-
#initialize(name) ⇒ SC2League
constructor
A new instance of SC2League.
- #leagues ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#leagues ⇒ Object
19 20 21 |
# File 'lib/sc2stats.rb', line 19 def leagues @leagues end |
#to_s ⇒ Object
23 24 25 |
# File 'lib/sc2stats.rb', line 23 def to_s @name.capitalize end |