Class: Compel::Coercion::Time

Inherits:
DateType show all
Defined in:
lib/compel/coercion/types/time.rb

Instance Attribute Summary

Attributes inherited from DateType

#format

Attributes inherited from Type

#options, #value

Instance Method Summary collapse

Methods inherited from DateType

#build_error_result, #coerce_value

Methods inherited from Type

coerce, #coerce, human_name, #initialize

Constructor Details

This class inherits a constructor from Compel::Coercion::Type

Instance Method Details

#default_formatObject



10
11
12
# File 'lib/compel/coercion/types/time.rb', line 10

def default_format
  '%FT%T'
end

#klassObject



6
7
8
# File 'lib/compel/coercion/types/time.rb', line 6

def klass
  ::Time
end