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 AtomicType

#initialize, #recommendation_point, #schema, #uri

Methods inherited from MetaType

#cast, #initialize, #inspect, #to_s

Constructor Details

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

Instance Method Details

#dump_for_json(value) ⇒ Object



145
146
147
# File 'lib/diva/type.rb', line 145

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