class VolumeConstraint
Category: Screen and Speaker
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
Constraint::new
# File lib/ruby-macrodroid/constraints.rb, line 1172 def initialize(h={}) options = { option: 0 } super(options.merge filter(options, h)) end
Public Instance Methods
to_s(colour: false, indent: 0)
click to toggle source
# File lib/ruby-macrodroid/constraints.rb, line 1182 def to_s(colour: false, indent: 0) a = ['Volume On', 'Vibrate Only' 'Silent', 'Vibrate or Silent'] "Ringer Volume\n " + a[@h[:option]] end