class BrightnessConstraint
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 1147 def initialize(h={}) options = { brightness: 35, equals: false, force_pie_mode: false, greater_than: false, is_auto_brightness: false } super(options.merge h) end
Public Instance Methods
to_s(colour: false, indent: 0)
click to toggle source
# File lib/ruby-macrodroid/constraints.rb, line 1161 def to_s(colour: false, indent: 0) 'BrightnessConstraint ' + @h.inspect end
Also aliased as: to_summary