class WifiSSIDTrigger
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
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
Trigger::new
# File lib/ruby-macrodroid/triggers.rb, line 606 def initialize(h={}) options = { wifi_cell_info_list: [{:display_name=>"", :ssid=>""}], ssid_list: [], in_range: true } super(options.merge h) end
Public Instance Methods
to_h()
click to toggle source
Calls superclass method
MacroObject#to_h
# File lib/ruby-macrodroid/triggers.rb, line 618 def to_h() h = super() val = h[:m_inRange] h[:m_InRange] = val h.delete :m_inRange return h end
to_s(colour: false)
click to toggle source
# File lib/ruby-macrodroid/triggers.rb, line 630 def to_s(colour: false) 'WifiSSIDTrigger ' + @h.inspect end
Also aliased as: to_summary