class Coercible::Coercer::DateTime

Coerce DateTime values

Public Instance Methods

to_datetime(value) click to toggle source

Passthrough the value

@example

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

@param [DateTime] value

@return [Date]

@api public

# File lib/coercible/coercer/date_time.rb, line 20
def to_datetime(value)
  value
end