Class: USB::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/usb.rb

Instance Method Summary collapse

Instance Method Details

#busObject



326
# File 'lib/usb.rb', line 326

def bus() self.configuration.device.bus end

#deviceObject



327
# File 'lib/usb.rb', line 327

def device() self.configuration.device end

#endpointsObject



329
# File 'lib/usb.rb', line 329

def endpoints() self.settings.map {|d| d.endpoints }.flatten end

#inspectObject



318
319
320
321
322
323
324
# File 'lib/usb.rb', line 318

def inspect
  if self.revoked?
    "\#<#{self.class} revoked>"
  else
    "\#<#{self.class}>"
  end
end