Class: Stockboy::Translations::USDate
- Inherits:
-
Date
- Object
- Stockboy::Translator
- Date
- Stockboy::Translations::USDate
- Includes:
- Date::PatternMatching
- Defined in:
- lib/stockboy/translations/us_date.rb
Overview
Translates numeric dates provided in US (MDY) order
Priority is given to middle-endian (US) order:
-
MM-DD-YYYY
-
MM-DD-YY
-
MM/DD/YYYY
-
MM/DD/YY
Job template DSL
Registered as :us_date
. Use with:
attributes do
check_in as: :us_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