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

Constructor Details

#initialize(h = {}) ⇒ SetBluetoothAction

Returns a new instance of SetBluetoothAction.



3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
# File 'lib/ruby-macrodroid.rb', line 3128

def initialize(h={})

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

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



3139
3140
3141
# File 'lib/ruby-macrodroid.rb', line 3139

def to_s(colour: false)
  'SetBluetoothAction ' + @h.inspect
end