Class: BluetoothTrigger

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

Overview

Category: Connectivity

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #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.



1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
# File 'lib/ruby-macrodroid.rb', line 1291

def initialize(h={})

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

  super(options.merge h)

end