Class: IngramMicro::DateFormatter
- Inherits:
-
Object
- Object
- IngramMicro::DateFormatter
- Defined in:
- lib/ingram_micro/date_formatter.rb
Instance Method Summary collapse
Instance Method Details
#format(date) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/ingram_micro/date_formatter.rb', line 2 def format(date) if date.respond_to?(:strftime) date.strftime('%Y%m%d') else date end end |