Class: Attributor::Temporal

Inherits:
Object
  • Object
show all
Includes:
Type
Defined in:
lib/attributor/families/temporal.rb

Direct Known Subclasses

Date, DateTime, Time

Class Method Summary collapse

Methods included from Type

included

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

.familyObject



11
12
13
# File 'lib/attributor/families/temporal.rb', line 11

def self.family
  'temporal'
end

.native_typeObject

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/attributor/families/temporal.rb', line 7

def self.native_type
  raise NotImplementedError
end