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



1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
# File 'lib/ruby-macrodroid.rb', line 1479

def initialize(h={})

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

  super(options.merge h)

end