Class: Stattleship::Models::League

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/stattleship/models/league.rb

Instance Method Summary collapse

Instance Method Details

#basetball?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/stattleship/models/league.rb', line 8

def basetball?
  sport == 'baseball'
end

#basketball?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/stattleship/models/league.rb', line 12

def basketball?
  sport == 'basketball'
end

#football?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/stattleship/models/league.rb', line 16

def football?
  sport == 'football'
end

#hockey?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/stattleship/models/league.rb', line 4

def hockey?
  sport == 'hockey'
end