Sha256: b999c89157853a614097a0ed079601fc3a9955ad4f52697ecf2f3706c616a3c6
Contents?: true
Size: 323 Bytes
Versions: 19
Compression:
Stored size: 323 Bytes
Contents
module CassandraObject module Types class TimeType < BaseType def encode(time) raise ArgumentError.new("#{time.inspect} is not a Time") unless time.kind_of?(Time) time.utc.xmlschema(6) end def decode(str) Time.parse(str).utc if str rescue end end end end
Version data entries
19 entries across 19 versions & 2 rubygems