Class: WifiHotSpotConstraint

Inherits:
Constraint show all
Defined in:
lib/ruby-macrodroid/constraints.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.



386
387
388
389
390
391
392
393
394
395
396
397
# File 'lib/ruby-macrodroid/constraints.rb', line 386

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, indent: 0) ⇒ Object Also known as: to_summary



399
400
401
# File 'lib/ruby-macrodroid/constraints.rb', line 399

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