Class: WifiHotSpotConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- WifiHotSpotConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Connectivity
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ WifiHotSpotConstraint
constructor
A new instance of WifiHotSpotConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
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={}) = { check_connections: false, comparison_value: 0, connected_count: 0, enabled: true } super(.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 |