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.



2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
# File 'lib/ruby-macrodroid.rb', line 2070

def initialize(h={})

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

  super(options.merge h)

end