Class: WifiConnectionTrigger

Inherits:
Trigger show all
Defined in:
lib/ruby-macrodroid.rb,
lib/ruby-macrodroid.rb

Overview

Category: Connectivity

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ WifiConnectionTrigger

Returns a new instance of WifiConnectionTrigger.



1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
# File 'lib/ruby-macrodroid.rb', line 1298

def initialize(h={})

  options = {
    ssid_list: [""],
    wifi_state: 2
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



1309
1310
1311
# File 'lib/ruby-macrodroid.rb', line 1309

def to_s(colour: false)
  'WifiConnectionTrigger ' + @h.inspect
end