Class: Mangadex::Internal::Definitions::Year
- Defined in:
- lib/mangadex/internal/definitions/year.rb
Instance Attribute Summary
Attributes inherited from Base
#accepts, #converts, #errors, #key
Instance Method Summary collapse
-
#initialize(value) ⇒ Year
constructor
A new instance of Year.
- #validate_accepts ⇒ Object
Methods inherited from Base
#empty?, #error_message, #valid?, #validate, #validate!, #value
Constructor Details
Instance Method Details
#validate_accepts ⇒ Object
20 21 22 23 24 |
# File 'lib/mangadex/internal/definitions/year.rb', line 20 def validate_accepts @accepts.validate!(converted_value) rescue ArgumentError => error add_error(error.) end |