Class: MyHIDAPI::DeviceInfo
- Inherits:
-
Object
- Object
- MyHIDAPI::DeviceInfo
- Defined in:
- lib/myhidapi.rb
Instance Attribute Summary collapse
-
#interface_number ⇒ Object
readonly
Returns the value of attribute interface_number.
-
#manufacturer_string ⇒ Object
readonly
Returns the value of attribute manufacturer_string.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#product_id ⇒ Object
readonly
Returns the value of attribute product_id.
-
#product_string ⇒ Object
readonly
Returns the value of attribute product_string.
-
#serial_number ⇒ Object
readonly
Returns the value of attribute serial_number.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
-
#vendor_id ⇒ Object
readonly
Returns the value of attribute vendor_id.
Instance Method Summary collapse
-
#initialize(vendor_id, product_id, path, serial_number, manufacturer_string, product_string, usage, interface_number) ⇒ DeviceInfo
constructor
A new instance of DeviceInfo.
- #open ⇒ Object
Constructor Details
#initialize(vendor_id, product_id, path, serial_number, manufacturer_string, product_string, usage, interface_number) ⇒ DeviceInfo
Returns a new instance of DeviceInfo.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/myhidapi.rb', line 9 def initialize vendor_id, product_id, path, serial_number, manufacturer_string, product_string, usage, interface_number @vendor_id = vendor_id @product_id = product_id @path = path @serial_number = serial_number @manufacturer_string = manufacturer_string @product_string = product_string @usage = usage @interface_number = interface_number end |
Instance Attribute Details
#interface_number ⇒ Object (readonly)
Returns the value of attribute interface_number.
7 8 9 |
# File 'lib/myhidapi.rb', line 7 def interface_number @interface_number end |
#manufacturer_string ⇒ Object (readonly)
Returns the value of attribute manufacturer_string.
7 8 9 |
# File 'lib/myhidapi.rb', line 7 def manufacturer_string @manufacturer_string end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/myhidapi.rb', line 7 def path @path end |
#product_id ⇒ Object (readonly)
Returns the value of attribute product_id.
7 8 9 |
# File 'lib/myhidapi.rb', line 7 def product_id @product_id end |
#product_string ⇒ Object (readonly)
Returns the value of attribute product_string.
7 8 9 |
# File 'lib/myhidapi.rb', line 7 def product_string @product_string end |
#serial_number ⇒ Object (readonly)
Returns the value of attribute serial_number.
7 8 9 |
# File 'lib/myhidapi.rb', line 7 def serial_number @serial_number end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage.
7 8 9 |
# File 'lib/myhidapi.rb', line 7 def usage @usage end |
#vendor_id ⇒ Object (readonly)
Returns the value of attribute vendor_id.
7 8 9 |
# File 'lib/myhidapi.rb', line 7 def vendor_id @vendor_id end |