class SetBrightnessAction
Category: Screen
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
ScreenAction::new
# File lib/ruby-macrodroid/actions.rb, line 2786 def initialize(h={}) options = { brightness_percent: 81, force_pie_mode: false, brightness: 0 } super(options.merge h) end
Public Instance Methods
to_s(colour: false, indent: 0)
click to toggle source
Calls superclass method
MacroObject#to_s
# File lib/ruby-macrodroid/actions.rb, line 2798 def to_s(colour: false, indent: 0) val = @h[:brightness_percent] > 100 ? 'Auto' : @h[:brightness_percent].to_s + '%' @s = 'Brightness' + "\n " + val #@h.inspect super() end
Also aliased as: to_summary