Class: MultiVideoStreaming::Validators::RequiredFieldsValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/multi_video_streaming/validators/required_fields_validator.rb

Class Method Summary collapse

Class Method Details

.validate(params) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/multi_video_streaming/validators/required_fields_validator.rb', line 6

def self.validate(params)
  params.each do |param_name, param_value|
    if param_value.nil?
      raise MultiVideoStreaming::Errors::MissingParam.new(param_name)
    end
  end
end