Class: SetBluetoothAction
- Inherits:
-
ConnectivityAction
- Object
- MacroObject
- Action
- ConnectivityAction
- SetBluetoothAction
- Defined in:
- lib/ruby-macrodroid.rb,
lib/ruby-macrodroid.rb
Overview
Category: Connectivity
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SetBluetoothAction
constructor
A new instance of SetBluetoothAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SetBluetoothAction
Returns a new instance of SetBluetoothAction.
3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 |
# File 'lib/ruby-macrodroid.rb', line 3135 def initialize(h={}) = { device_name: '', state: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
3146 3147 3148 |
# File 'lib/ruby-macrodroid.rb', line 3146 def to_s(colour: false) 'SetBluetoothAction ' + @h.inspect end |