Class: NFCStateConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- NFCStateConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Device State
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ NFCStateConstraint
constructor
A new instance of NFCStateConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ NFCStateConstraint
5376 5377 5378 5379 5380 5381 5382 5383 5384 |
# File 'lib/ruby-macrodroid.rb', line 5376 def initialize(h={}) = { enabled: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5386 5387 5388 |
# File 'lib/ruby-macrodroid.rb', line 5386 def to_s(colour: false) 'NFCStateConstraint ' + @h.inspect end |