Module: Attributor::Temporal::ClassMethods
- Defined in:
- lib/attributor/families/temporal.rb
Instance Method Summary collapse
Instance Method Details
#dump(value, **_opts) ⇒ Object
17 18 19 |
# File 'lib/attributor/families/temporal.rb', line 17 def dump(value, **_opts) value && value.iso8601 end |
#family ⇒ Object
13 14 15 |
# File 'lib/attributor/families/temporal.rb', line 13 def family 'temporal' end |
#json_schema_type ⇒ Object
21 22 23 |
# File 'lib/attributor/families/temporal.rb', line 21 def json_schema_type :string end |
#native_type ⇒ Object
9 10 11 |
# File 'lib/attributor/families/temporal.rb', line 9 def native_type raise NotImplementedError end |