Class: WifiHotSpotConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- WifiHotSpotConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.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, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
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={}) = { check_connections: false, comparison_value: 0, connected_count: 0, enabled: true } super(.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 |