Sha256: 4951d1c610795afb21808d47df25c84209d192f0db646cc6902f8a5e6bc659d0

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

require "msgpack"

require "twib/interface.rb"

module Twib
  module Interfaces
    class ITwibMetaInterface < Interface
      module Command
        LIST_DEVICES = 10
      end
      def list_devices
        MessagePack.unpack(send(Command::LIST_DEVICES).wait_ok.payload)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twib-0.1.0 lib/twib/interfaces/ITwibMetaInterface.rb