Module: Basketball::Season::OpponentType
- Defined in:
- lib/basketball/season/opponent_type.rb
Overview
Describes the relationship between two teams.
Constant Summary collapse
- INTRA_DIVISIONAL =
:intra_divisional- INTRA_CONFERENCE =
:intra_conference- INTER_CONFERENCE =
:inter_conference
Class Method Summary collapse
Class Method Details
.parse(value) ⇒ Object
12 13 14 |
# File 'lib/basketball/season/opponent_type.rb', line 12 def parse(value) OpponentType.const_get(value.to_s.upcase.to_sym) end |