lib/twib/interfaces/ITwibMetaInterface.rb in twib-0.1.0 vs lib/twib/interfaces/ITwibMetaInterface.rb in twib-0.1.1

- old
+ new

@@ -2,13 +2,18 @@ require "twib/interface.rb" module Twib module Interfaces + # Exposed by twibd class ITwibMetaInterface < Interface + # @api private module Command LIST_DEVICES = 10 end + + # Lists devices known to twibd. + # @return [Array<Hash>] def list_devices MessagePack.unpack(send(Command::LIST_DEVICES).wait_ok.payload) end end end