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.
1073 1074 1075 1076 1077 1078 1079 1080 1081 |
# File 'lib/ruby-macrodroid/constraints.rb', line 1073 def initialize(h={}) = { option: 1 } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
1083 1084 1085 |
# File 'lib/ruby-macrodroid/constraints.rb', line 1083 def to_s(colour: false, indent: 0) 'NotificationVolumeConstraint ' + @h.inspect end |