Sha256: 7972f8594b1b5945216bebe58e70020919d9d986a57ba3cf219216c49e919649
Contents?: true
Size: 323 Bytes
Versions: 2
Compression:
Stored size: 323 Bytes
Contents
module Compel module Builder class Time < Schema include CommonValue def initialize super(Coercion::Time) end def format(value) options[:format] = value self end def iso8601 options[:format] = '%FT%T' self end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
compel-0.4.0 | lib/compel/builder/time.rb |
compel-0.3.7 | lib/compel/builder/time.rb |