Class: BluetoothTrigger

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, #to_s

Constructor Details

#initialize(h = {}) ⇒ BluetoothTrigger

Returns a new instance of BluetoothTrigger.



1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
# File 'lib/ruby-macrodroid.rb', line 1545

def initialize(h={})

  options = {
    device_name: 'Any Device',
    bt_state: 0,
    any_device: false
  }

  super(options.merge h)

end