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
15 16 17 |
# File 'lib/attributor/families/temporal.rb', line 15 def self.dump(value, **_opts) value && value.iso8601 end |
.family ⇒ Object
11 12 13 |
# File 'lib/attributor/families/temporal.rb', line 11 def self.family 'temporal' end |
.native_type ⇒ Object
7 8 9 |
# File 'lib/attributor/families/temporal.rb', line 7 def self.native_type raise NotImplementedError end |