Class: Holidays::Definition::Validator::Test
- Inherits:
-
Object
- Object
- Holidays::Definition::Validator::Test
- Defined in:
- lib/holidays/definition/validator/test.rb
Instance Method Summary collapse
Instance Method Details
#valid?(t) ⇒ Boolean
5 6 7 8 9 10 11 12 |
# File 'lib/holidays/definition/validator/test.rb', line 5 def valid?(t) valid_dates?(t[:dates]) && valid_regions?(t[:regions]) && valid_name?(t[:name]) && valid_holiday?(t[:holiday]) && (t[:options]) && required_fields?(t) end |