Class: Compel::Coercion::Time
- Defined in:
- lib/compel/coercion/types/time.rb
Instance Attribute Summary
Attributes inherited from DateType
Attributes inherited from Type
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_format ⇒ Object
10 11 12 |
# File 'lib/compel/coercion/types/time.rb', line 10 def default_format '%FT%T' end |
#klass ⇒ Object
6 7 8 |
# File 'lib/compel/coercion/types/time.rb', line 6 def klass ::Time end |