Class: BluetoothConstraint

Inherits:
Constraint 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 Constraint

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ BluetoothConstraint

Returns a new instance of BluetoothConstraint.



3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
# File 'lib/ruby-macrodroid.rb', line 3731

def initialize(h={})

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

  super(options.merge h)

end