Method: LIBUSB::Device#manufacturer

Defined in:
lib/libusb/device.rb

#manufacturerObject

Return manufacturer of the device

Returns:

  • String



352
353
354
355
356
357
# File 'lib/libusb/device.rb', line 352

def manufacturer
  return @manufacturer if defined? @manufacturer
  @manufacturer = try_string_descriptor_ascii(self.iManufacturer)
  @manufacturer = @manufacturer.strip if @manufacturer
  @manufacturer
end