Class: Muesli::AttributeSerializers::DateTime

Inherits:
Time
  • Object
show all
Defined in:
lib/muesli/attribute_serializers/date.rb,
lib/muesli/attribute_serializers/date_time.rb

Instance Method Summary collapse

Methods inherited from Time

#serialize

Methods inherited from Base

#serialize

Constructor Details

#initializeDateTime

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