Class: WifiSSIDTrigger
- Inherits:
-
Trigger
- Object
- MacroObject
- Trigger
- WifiSSIDTrigger
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Connectivity
Also known as Wifi SSID Transition
options:
in_range: true | false
wifi_cell_info: {display_name: "some Wifi SSID",
ssid: "some Wifi SSID"} - 1 or more allowed
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ WifiSSIDTrigger
constructor
A new instance of WifiSSIDTrigger.
- #to_h ⇒ Object
Methods inherited from Trigger
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ WifiSSIDTrigger
Returns a new instance of WifiSSIDTrigger.
1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 |
# File 'lib/ruby-macrodroid.rb', line 1487 def initialize(h={}) = { wifi_cell_info_list: [{:display_name=>"", :ssid=>""}], ssid_list: [], in_range: true } super(.merge h) end |
Instance Method Details
#to_h ⇒ Object
1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 |
# File 'lib/ruby-macrodroid.rb', line 1499 def to_h() h = super() val = h[:m_inRange] h[:m_InRange] = val h.delete :m_inRange return h end |