Class: WifiConnectionTrigger
- Inherits:
-
Trigger
- Object
- MacroObject
- Trigger
- WifiConnectionTrigger
- Defined in:
- lib/ruby-macrodroid/triggers.rb,
lib/ruby-macrodroid/triggers.rb
Overview
Category: Connectivity
Instance Attribute Summary
Attributes inherited from Trigger
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ WifiConnectionTrigger
constructor
A new instance of WifiConnectionTrigger.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Trigger
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ WifiConnectionTrigger
Returns a new instance of WifiConnectionTrigger.
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/ruby-macrodroid/triggers.rb', line 77 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
88 89 90 |
# File 'lib/ruby-macrodroid/triggers.rb', line 88 def to_s(colour: false) 'WifiConnectionTrigger ' + @h.inspect end |