Class: PlayTime::Track
- Inherits:
-
Object
- Object
- PlayTime::Track
- Defined in:
- lib/play_time/track.rb
Defined Under Namespace
Classes: InvalidTrack
Constant Summary collapse
- ALPHA =
'alpha'.freeze
- BETA =
'beta'.freeze
- ROLLOUT =
'rollout'.freeze
- PRODUCTION =
'production'.freeze
- TRACKS =
[ALPHA, BETA, ROLLOUT, PRODUCTION].freeze
Class Method Summary collapse
Class Method Details
.validate!(track) ⇒ Object
12 13 14 |
# File 'lib/play_time/track.rb', line 12 def self.validate!(track) raise InvalidTrack.new("#{track} is an invalid track") unless valid?(track) end |