class SetAutoRotateAction
Category: Device Settings
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
DeviceSettingsAction::new
# File lib/ruby-macrodroid/actions.rb, line 1420 def initialize(h={}) options = { state: 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 1430 def to_s(colour: false, indent: 0) #'SetAutoRotateAction ' + @h.inspect @s = 'Auto Rotate ' + %w(On Off Toggle)[@h[:state]] super() end
Also aliased as: to_summary