6 7 8 9 10 11 12
# File 'lib/zss/require.rb', line 6 def self.requires params, attributes Array(attributes).each do |attribute| unless params[attribute].present? raise ZSS::Error.new(400, "Invalid parameter '#{attribute}'") end end end