Sha256: 6f1019540691f017727af2a035e265b16fc018e73750972bb838551cdba2c4b4

Contents?: true

Size: 501 Bytes

Versions: 5

Compression:

Stored size: 501 Bytes

Contents

require 'ffi/msgpack/types'
require 'ffi/msgpack/msg_object'

module FFI
  module MsgPack
    class MsgKeyValue < FFI::Struct

      layout :key, MsgObject,
             :value, MsgObject

      #
      # The key.
      #
      # @return [MsgObject]
      #   The key Msg Object.
      #
      def key
        self[:key]
      end

      #
      # The value.
      #
      # @return [MsgObject]
      #   The value Msg Object.
      #
      def value
        self[:value]
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ffi-msgpack-0.2.2 lib/ffi/msgpack/msg_key_value.rb
ffi-msgpack-0.2.1 lib/ffi/msgpack/msg_key_value.rb
ffi-msgpack-0.2.0 lib/ffi/msgpack/msg_key_value.rb
ffi-msgpack-0.1.4 lib/ffi/msgpack/msg_key_value.rb
ffi-msgpack-0.1.3 lib/ffi/msgpack/msg_key_value.rb