Exception: MTP::DeviceError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  super(message)
  @device = device
end

Instance Attribute Details

#deviceObject (readonly)

Returns the value of attribute device.



50
51
52
# File 'lib/mtp.rb', line 50

def device
  @device
end