Class: SetBluetoothAction

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

Overview

Category: Connectivity

Instance Attribute Summary

Attributes inherited from Action

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ SetBluetoothAction

Returns a new instance of SetBluetoothAction.



2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
# File 'lib/ruby-macrodroid.rb', line 2755

def initialize(h={})

  options = {
    device_name: '',
    state: 0
  }

  super(options.merge h)

end