Class: MultiVideoStreaming::Validators::PlatformsPositionValidator
- Inherits:
-
Object
- Object
- MultiVideoStreaming::Validators::PlatformsPositionValidator
- Defined in:
- lib/multi_video_streaming/validators/platforms_position_validator.rb
Class Method Summary collapse
Class Method Details
.validate(platforms:) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/multi_video_streaming/validators/platforms_position_validator.rb', line 6 def self.validate(platforms:) primary_platform = platforms.first if primary_platform[:platform_name] == "s3" platforms.delete_at(0) platforms << primary_platform end platforms end |