Class: MultiVideoStreaming::Validators::PlatformNameValidator
- Inherits:
-
Object
- Object
- MultiVideoStreaming::Validators::PlatformNameValidator
- Defined in:
- lib/multi_video_streaming/validators/platform_name_validator.rb
Class Method Summary collapse
Class Method Details
.validate(name:) ⇒ Object
6 7 8 9 10 |
# File 'lib/multi_video_streaming/validators/platform_name_validator.rb', line 6 def self.validate(name:) if !MultiVideoStreaming::PLATFORMS_SUPPORT.include?(name) raise MultiVideoStreaming::Errors::InvalidPlatformName.new(name) end end |