Class: NotificationVolumeConstraint

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

Overview

Category: Notification

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

Returns a new instance of NotificationVolumeConstraint.



5653
5654
5655
5656
5657
5658
5659
5660
5661
# File 'lib/ruby-macrodroid.rb', line 5653

def initialize(h={})

  options = {
    option: 1
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



5663
5664
5665
# File 'lib/ruby-macrodroid.rb', line 5663

def to_s(colour: false)
  'NotificationVolumeConstraint ' + @h.inspect
end