Class: OBIX::Types::Date

Inherits:
Type
  • Object
show all
Defined in:
lib/obix/types/date.rb

Instance Method Summary collapse

Methods inherited from Type

#initialize

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