Class Coercible::Coercer::DateTime
In: lib/coercible/coercer/date_time.rb
Parent: Object

Coerce DateTime values

Methods

Included Modules

TimeCoercions

Public Instance methods

Passthrough the value

@example

  coercer[DateTime].to_datetime(datetime)  # => DateTime object

@param [DateTime] value

@return [Date]

@api public

[Validate]