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 MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ SetBluetoothAction

Returns a new instance of SetBluetoothAction.



1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
# File 'lib/ruby-macrodroid.rb', line 1783

def initialize(h={})

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

  super(options.merge h)

end