class Stattleship::Validators::StatusValidator
Constants
- VALID_STATUSES
Public Instance Methods
validate()
click to toggle source
# File lib/stattleship/validators/status_validator.rb, line 6 def validate if VALID_STATUSES.include?(value) return else fail ArgumentError. new("expected #{key} to be either #{VALID_STATUSES.join(', ')}") end end