Class: Stattleship::Models::League
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Stattleship::Models::League
- Defined in:
- lib/stattleship/models/league.rb
Instance Method Summary collapse
Instance Method Details
#basetball? ⇒ Boolean
8 9 10 |
# File 'lib/stattleship/models/league.rb', line 8 def basetball? sport == 'baseball' end |
#basketball? ⇒ Boolean
12 13 14 |
# File 'lib/stattleship/models/league.rb', line 12 def basketball? sport == 'basketball' end |
#football? ⇒ Boolean
16 17 18 |
# File 'lib/stattleship/models/league.rb', line 16 def football? sport == 'football' end |
#hockey? ⇒ Boolean
4 5 6 |
# File 'lib/stattleship/models/league.rb', line 4 def hockey? sport == 'hockey' end |