module MsgPackable::Bloomed

Public Class Methods

included(base) click to toggle source
# File lib/bloomed/msg_packable.rb, line 5
def self.included(base)
  base.extend(ClassMethods)
end

Public Instance Methods

from_msgpack_ext(top, false_positive_probability, bloom) click to toggle source
# File lib/bloomed/msg_packable.rb, line 13
def from_msgpack_ext(top, false_positive_probability, bloom)
  @top = top
  @false_positive_probability = false_positive_probability
  @bloom = bloom
end
to_msgpack() click to toggle source
# File lib/bloomed/msg_packable.rb, line 19
def to_msgpack
  self.class.msgpack_factory.dump self
end
to_msgpack_ext() click to toggle source
# File lib/bloomed/msg_packable.rb, line 9
def to_msgpack_ext
  self.class.msgpack_factory.dump([@top, @false_positive_probability, @bloom])
end