Class: VpnConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- VpnConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Device State
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ VpnConstraint
constructor
A new instance of VpnConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ VpnConstraint
Returns a new instance of VpnConstraint.
5432 5433 5434 5435 5436 5437 5438 5439 5440 |
# File 'lib/ruby-macrodroid.rb', line 5432 def initialize(h={}) = { option: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5442 5443 5444 |
# File 'lib/ruby-macrodroid.rb', line 5442 def to_s(colour: false) 'VpnConstraint ' + @h.inspect end |