Class: NFCStateConstraint

Inherits:
Constraint show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Device State

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h

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={})

  options = {
    enabled: true
  }

  super(options.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