Class: NotificationVolumeConstraint

Inherits:
Constraint show all
Defined in:
lib/ruby-macrodroid/constraints.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.



1053
1054
1055
1056
1057
1058
1059
1060
1061
# File 'lib/ruby-macrodroid/constraints.rb', line 1053

def initialize(h={})

  options = {
    option: 1
  }

  super(options.merge h)

end

Instance Method Details

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



1063
1064
1065
# File 'lib/ruby-macrodroid/constraints.rb', line 1063

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