Sha256: aa7a304924f0343b73629d78993e6d25b443e7824ac73264bbe136d0cf8dc2dc
Contents?: true
Size: 450 Bytes
Versions: 5
Compression:
Stored size: 450 Bytes
Contents
module LogStash; module Codecs; class Fluent; class EventTime attr_reader :sec, :nsec TYPE = 0 def initialize(sec, nsec = 0) @sec = sec @nsec = nsec end def to_msgpack(io = nil) @sec.to_msgpack(io) end def to_msgpack_ext [@sec, @nsec].pack('NN') end def self.from_msgpack_ext(data) new(*data.unpack('NN')) end def to_json(*args) @sec end end end; end; end
Version data entries
5 entries across 5 versions & 1 rubygems