Class: Stockboy::Translations::UKDate
- Inherits:
-
Date
- Object
- Stockboy::Translator
- Date
- Stockboy::Translations::UKDate
- Includes:
- Date::PatternMatching
- Defined in:
- lib/stockboy/translations/uk_date.rb
Overview
Translates numeric dates provided in UK (DMY) order
Priority is given to small-endian (UK) order:
-
DD-MM-YYYY
-
DD-MM-YY
-
DD/MM/YYYY
-
DD/MM/YY
Job template DSL
Registered as :uk_date
. Use with:
attributes do
check_in as: :uk_date
end
Instance Attribute Summary
Attributes inherited from Stockboy::Translator
Method Summary
Methods inherited from Date
Methods inherited from Stockboy::Translator
Constructor Details
This class inherits a constructor from Stockboy::Translator