Class: Muesli::AttributeSerializers::DateTime
- Defined in:
- lib/muesli/attribute_serializers/date.rb,
lib/muesli/attribute_serializers/date_time.rb
Instance Method Summary collapse
-
#initialize ⇒ DateTime
constructor
A new instance of DateTime.
Methods inherited from Time
Methods inherited from Base
Constructor Details
#initialize ⇒ DateTime
Returns a new instance of DateTime.
4 5 6 7 8 |
# File 'lib/muesli/attribute_serializers/date.rb', line 4 def initialize super @value = @value.to_time end |