Class: Diva::Type::TimeType

Inherits:
AtomicType show all
Defined in:
lib/diva/type.rb

Instance Attribute Summary

Attributes inherited from MetaType

#name

Instance Method Summary collapse

Methods inherited from MetaType

#cast, #initialize, #inspect, #to_s

Constructor Details

This class inherits a constructor from Diva::Type::MetaType

Instance Method Details

#dump_for_json(value) ⇒ Object



123
124
125
# File 'lib/diva/type.rb', line 123

def dump_for_json(value)
  cast(value).iso8601
end