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



2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
# File 'lib/ruby-macrodroid.rb', line 2667

def initialize(h={})

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

  super(options.merge h)

end