Class: WifiSSIDTrigger
- Inherits:
-
Trigger
- Object
- MacroObject
- Trigger
- WifiSSIDTrigger
- Defined in:
- lib/ruby-macrodroid/triggers.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 Trigger
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ WifiSSIDTrigger
constructor
A new instance of WifiSSIDTrigger.
- #to_h ⇒ Object
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Trigger
Constructor Details
#initialize(h = {}) ⇒ WifiSSIDTrigger
Returns a new instance of WifiSSIDTrigger.
549 550 551 552 553 554 555 556 557 558 559 |
# File 'lib/ruby-macrodroid/triggers.rb', line 549 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
561 562 563 564 565 566 567 568 569 570 571 |
# File 'lib/ruby-macrodroid/triggers.rb', line 561 def to_h() h = super() val = h[:m_inRange] h[:m_InRange] = val h.delete :m_inRange return h end |
#to_s(colour: false) ⇒ Object Also known as: to_summary
573 574 575 |
# File 'lib/ruby-macrodroid/triggers.rb', line 573 def to_s(colour: false) 'WifiSSIDTrigger ' + @h.inspect end |