Class: FFI::MsgPack::MsgKeyValue

Inherits:
Struct
  • Object
show all
Defined in:
lib/ffi/msgpack/msg_key_value.rb

Instance Method Summary collapse

Instance Method Details

#keyMsgObject

The key.

Returns:



17
18
19
# File 'lib/ffi/msgpack/msg_key_value.rb', line 17

def key
  MsgObject.new(self[:key])
end

#valueMsgObject

The value.

Returns:



27
28
29
# File 'lib/ffi/msgpack/msg_key_value.rb', line 27

def value
  MsgObject.new(self[:value])
end