Module: Magtek
- Defined in:
- lib/magtek_card_reader/list.rb,
lib/magtek_card_reader/reader.rb
Defined Under Namespace
Classes: CardReader
Class Method Summary collapse
Class Method Details
.available_devices ⇒ Object
3 4 5 6 |
# File 'lib/magtek_card_reader/list.rb', line 3 def self.available_devices usb = LIBUSB::Context.new usb.devices.select { |d| d.idVendor == 0x0801 }.map { |d| [ d.idProduct, d.product ] } end |