Class: OBIX::Types::Time
Instance Method Summary collapse
-
#cast(value) ⇒ Object
Cast the given value to a time.
Methods inherited from Type
Constructor Details
This class inherits a constructor from OBIX::Types::Type
Instance Method Details
#cast(value) ⇒ Object
Cast the given value to a time.
value - A string that may be parsed by ‘Time.parse`.
Returns a string.
13 14 15 |
# File 'lib/obix/types/time.rb', line 13 def cast value ::DateTime.parse value end |