Class: WifiHotSpotConstraint

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

Overview

Category: Connectivity

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ WifiHotSpotConstraint

Returns a new instance of WifiHotSpotConstraint.



5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
# File 'lib/ruby-macrodroid.rb', line 5054

def initialize(h={})

  options = {
    check_connections: false,
    comparison_value: 0,
    connected_count: 0,
    enabled: true
  }

  super(options.merge h)

end

Instance Method Details

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



5067
5068
5069
# File 'lib/ruby-macrodroid.rb', line 5067

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