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



16
17
18
# File 'lib/attributor/families/temporal.rb', line 16

def self.dump(value,**opts)
  value && value.iso8601
end

.familyObject



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

def self.family
  'temporal'
end

.native_typeObject

Raises:

  • (NotImplementedError)


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

def self.native_type
  raise NotImplementedError
end