Module: Sysdo::SourceLibrary::Usb

Defined in:
lib/sysdo/source_library/usb.rb

Defined Under Namespace

Classes: UsbDevice

Class Method Summary collapse

Class Method Details

.connectedObject



4
5
6
# File 'lib/sysdo/source_library/usb.rb', line 4

def self.connected
  EventSource::PolledCollectionChange.new(:add) { attached_devices }
end

.disconnectedObject



8
9
10
# File 'lib/sysdo/source_library/usb.rb', line 8

def self.disconnected
  EventSource::PolledCollectionChange.new(:remove) { attached_devices }
end