Class: Compel::Builder::Time
- Defined in:
- lib/compel/builder/time.rb
Instance Attribute Summary
Attributes inherited from Schema
Instance Method Summary collapse
- #format(value) ⇒ Object
-
#initialize ⇒ Time
constructor
A new instance of Time.
- #iso8601 ⇒ Object
Methods inherited from Schema
#default_value, #required?, #validate
Methods included from Common
Constructor Details
Instance Method Details
#format(value) ⇒ Object
10 11 12 13 |
# File 'lib/compel/builder/time.rb', line 10 def format(value) [:format] = value self end |
#iso8601 ⇒ Object
15 16 17 18 |
# File 'lib/compel/builder/time.rb', line 15 def iso8601 [:format] = '%FT%T' self end |