Class: PlayTime::Track

Inherits:
Object
  • Object
show all
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

Raises:



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