Class: Mayaml::MuttAccountInit::Validator
- Inherits:
-
Object
- Object
- Mayaml::MuttAccountInit::Validator
- Includes:
- Mainapp::Component
- Defined in:
- lib/mayaml/mutt_account_init/validator.rb
Instance Method Summary collapse
Instance Method Details
#validate(data) ⇒ Object
11 12 13 14 15 |
# File 'lib/mayaml/mutt_account_init/validator.rb', line 11 def validate(data) %i[name index].each do |value| raise ArgumentError.new "Missing #{value}" if missing?(data, value) end end |