Class: OBIX::Types::Date
Instance Method Summary collapse
-
#cast(value) ⇒ Object
Cast the given value to a date.
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 date.
value - A string that may be parsed by ‘Date.parse`.
Returns a string.
13 14 15 |
# File 'lib/obix/types/date.rb', line 13 def cast value ::Date.parse value end |