Class: NFCStateConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- NFCStateConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.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, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ NFCStateConstraint
Returns a new instance of NFCStateConstraint.
731 732 733 734 735 736 737 738 739 |
# File 'lib/ruby-macrodroid/constraints.rb', line 731 def initialize(h={}) = { enabled: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
741 742 743 |
# File 'lib/ruby-macrodroid/constraints.rb', line 741 def to_s(colour: false, indent: 0) 'NFCStateConstraint ' + @h.inspect end |