Exception: MTP::DeviceError
Direct Known Subclasses
CommandError, DeviceNotFound, UnsupportedRequest, WriteError, WrongDeviceType
Instance Attribute Summary collapse
-
#device ⇒ Object
readonly
Returns the value of attribute device.
Instance Method Summary collapse
-
#initialize(device, message) ⇒ DeviceError
constructor
A new instance of DeviceError.
Constructor Details
#initialize(device, message) ⇒ DeviceError
Returns a new instance of DeviceError.
52 53 54 55 |
# File 'lib/mtp.rb', line 52 def initialize(device, ) super() @device = device end |
Instance Attribute Details
#device ⇒ Object (readonly)
Returns the value of attribute device.
50 51 52 |
# File 'lib/mtp.rb', line 50 def device @device end |