module BSON::LogStashTimestamp
Injects behaviour for encoding and decoding time values to and from raw bytes as specified by the BSON
spec.
Constants
- BSON_TYPE
A time is type 0x09 in the
BSON
spec.
Public Instance Methods
to_bson(encoded = ''.force_encoding(BINARY))
click to toggle source
# File lib/logstash/outputs/bson/logstash_timestamp.rb, line 28 def to_bson(encoded = ''.force_encoding(BINARY)) time.to_bson(encoded) end