Class: NotificationVolumeConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- NotificationVolumeConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.rb
Overview
Category: Notification
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ NotificationVolumeConstraint
constructor
A new instance of NotificationVolumeConstraint.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ NotificationVolumeConstraint
Returns a new instance of NotificationVolumeConstraint.
1084 1085 1086 1087 1088 1089 1090 1091 1092 |
# File 'lib/ruby-macrodroid/constraints.rb', line 1084 def initialize(h={}) = { option: 1 } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
1094 1095 1096 |
# File 'lib/ruby-macrodroid/constraints.rb', line 1094 def to_s(colour: false, indent: 0) 'NotificationVolumeConstraint ' + @h.inspect end |