module ServiceDowntimeSimulator::Modes
Constants
- AVAILABLE
- NotFound
Public Class Methods
exists?(id)
click to toggle source
# File lib/service_downtime_simulator/modes.rb, line 18 def self.exists?(id) AVAILABLE.key?(id) end
for(id)
click to toggle source
# File lib/service_downtime_simulator/modes.rb, line 12 def self.for(id) raise NotFound unless exists?(id) AVAILABLE[id] end