Class: IknowParams::Serializer::ISO8601
- Inherits:
-
IknowParams::Serializer
- Object
- IknowParams::Serializer
- IknowParams::Serializer::ISO8601
- Defined in:
- lib/iknow_params/serializer.rb
Overview
Abstract serializer for ISO8601 dates and times
Instance Attribute Summary
Attributes inherited from IknowParams::Serializer
Instance Method Summary collapse
Methods inherited from IknowParams::Serializer
for, for!, #initialize, json_value?, #matches_type!, #matches_type?, singleton
Constructor Details
This class inherits a constructor from IknowParams::Serializer
Instance Method Details
#dump(val, json: nil) ⇒ Object
187 188 189 190 |
# File 'lib/iknow_params/serializer.rb', line 187 def dump(val, json: nil) matches_type!(val) val.iso8601 end |