Class: Attributor::Temporal
- Inherits:
-
Object
- Object
- Attributor::Temporal
- Includes:
- Type
- Defined in:
- lib/attributor/families/temporal.rb
Class Method Summary collapse
Methods included from Type
Class Method Details
.dump(value, **opts) ⇒ Object
16 17 18 |
# File 'lib/attributor/families/temporal.rb', line 16 def self.dump(value,**opts) value && value.iso8601 end |
.family ⇒ Object
12 13 14 |
# File 'lib/attributor/families/temporal.rb', line 12 def self.family 'temporal' end |
.native_type ⇒ Object
8 9 10 |
# File 'lib/attributor/families/temporal.rb', line 8 def self.native_type raise NotImplementedError end |