Class: UsbDeviceConnectionTrigger

Inherits:
Trigger show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Connectivity

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ UsbDeviceConnectionTrigger

Returns a new instance of UsbDeviceConnectionTrigger.



1733
1734
1735
1736
1737
1738
1739
1740
1741
# File 'lib/ruby-macrodroid.rb', line 1733

def initialize(h={})

  options = {
    option: 0
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



1743
1744
1745
# File 'lib/ruby-macrodroid.rb', line 1743

def to_s(colour: false)
  'UsbDeviceConnectionTrigger ' + @h.inspect
end