Class: NotificationPresentConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- NotificationPresentConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Notification
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ NotificationPresentConstraint
constructor
A new instance of NotificationPresentConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ NotificationPresentConstraint
Returns a new instance of NotificationPresentConstraint.
5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 |
# File 'lib/ruby-macrodroid.rb', line 5589 def initialize(h={}) = { enable_regex: false, application_name_list: ["All applications"], exact_match: false, excludes: false, excludes_apps: -1, option: 0, package_name_list: ["allApplications"], text_content: '' } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5606 5607 5608 |
# File 'lib/ruby-macrodroid.rb', line 5606 def to_s(colour: false) 'NotificationPresentConstraint ' + @h.inspect end |