Class: SetAutoRotateAction

Inherits:
DeviceSettingsAction show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Device Settings

Instance Attribute Summary

Attributes inherited from Action

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ SetAutoRotateAction

Returns a new instance of SetAutoRotateAction.



3560
3561
3562
3563
3564
3565
3566
3567
3568
# File 'lib/ruby-macrodroid.rb', line 3560

def initialize(h={})

  options = {
    state: 0
  }

  super(options.merge h)

end

Instance Method Details

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



3570
3571
3572
# File 'lib/ruby-macrodroid.rb', line 3570

def to_s(colour: false)
  'SetAutoRotateAction ' + @h.inspect
end