Class: WifiConnectionTrigger2
- Inherits:
-
Trigger
- Object
- MacroObject
- Trigger
- WifiConnectionTrigger2
- Defined in:
- lib/ruby-macrodroid/triggers.rb
Overview
Category: Applications
Also known as Wifi State Change
wifi_state options:
0 - Wifi Enabled
1 - Wifi Disabled
2 - Connected to network
ssid_list options:
["Any Network"]
["some Wifi SSID"] - 1 or more SSID can be supplied
3 - Disconnected from network
ssid_list options:
["Any Network"]
["some Wifi SSID"] - 1 or more SSID can be supplied
Instance Attribute Summary
Attributes inherited from Trigger
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ WifiConnectionTrigger2
constructor
A new instance of WifiConnectionTrigger2.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Trigger
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ WifiConnectionTrigger2
Returns a new instance of WifiConnectionTrigger2.
91 92 93 94 95 96 97 98 99 100 |
# File 'lib/ruby-macrodroid/triggers.rb', line 91 def initialize(h={}) = { ssid_list: [""], wifi_state: 2 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
102 103 104 |
# File 'lib/ruby-macrodroid/triggers.rb', line 102 def to_s(colour: false) 'WifiConnectionTrigger ' + @h.inspect end |