Class: USB::Setting
- Inherits:
-
Object
- Object
- USB::Setting
- Extended by:
- Forwardable
- Includes:
- Comparable
- Defined in:
- lib/libusb/compat.rb
Instance Method Summary collapse
- #<=>(o) ⇒ Object
- #bus ⇒ Object
- #configuration ⇒ Object
- #device ⇒ Object
- #endpoints ⇒ Object
-
#initialize(id) ⇒ Setting
constructor
A new instance of Setting.
- #interface ⇒ Object
Constructor Details
#initialize(id) ⇒ Setting
Returns a new instance of Setting.
248 249 250 |
# File 'lib/libusb/compat.rb', line 248 def initialize(id) @id = id end |
Instance Method Details
#<=>(o) ⇒ Object
256 257 258 |
# File 'lib/libusb/compat.rb', line 256 def <=>(o) @id<=>o.instance_variable_get(:@id) end |
#bus ⇒ Object
260 |
# File 'lib/libusb/compat.rb', line 260 def bus() self.interface.configuration.device.bus end |
#configuration ⇒ Object
262 |
# File 'lib/libusb/compat.rb', line 262 def configuration() self.interface.configuration end |
#device ⇒ Object
261 |
# File 'lib/libusb/compat.rb', line 261 def device() self.interface.configuration.device end |