Class: Jubatus::Common::TDatum

Inherits:
Object
  • Object
show all
Defined in:
lib/jubatus/common/types.rb

Instance Method Summary collapse

Instance Method Details

#from_msgpack(m) ⇒ Object


84
85
86
# File 'lib/jubatus/common/types.rb', line 84

def from_msgpack(m)
  Jubatus::Common::Datum.from_msgpack(m)
end

#to_msgpack(m) ⇒ Object


88
89
90
91
# File 'lib/jubatus/common/types.rb', line 88

def to_msgpack(m)
  Jubatus::Common.check_type(m, Jubatus::Common::Datum)
  m.to_msgpack()
end