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
Returns a new instance of NFCStateConstraint.
5390 5391 5392 5393 5394 5395 5396 5397 5398 |
# File 'lib/ruby-macrodroid.rb', line 5390 def initialize(h={}) = { enabled: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5400 5401 5402 |
# File 'lib/ruby-macrodroid.rb', line 5400 def to_s(colour: false) 'NFCStateConstraint ' + @h.inspect end |