Class: Arrow::TimestampParser
- Inherits:
-
Object
- Object
- Arrow::TimestampParser
- Defined in:
- lib/arrow/timestamp-parser.rb
Class Method Summary collapse
Class Method Details
.try_convert(value) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/arrow/timestamp-parser.rb', line 21 def try_convert(value) case value when :iso8601 ISO8601TimestampParser.new when String StrptimeTimestampParser.new(value) else nil end end |