Class: SetScreenTimeoutAction

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

Overview

Category: Screen

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 = {}) ⇒ SetScreenTimeoutAction

Returns a new instance of SetScreenTimeoutAction.



4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
# File 'lib/ruby-macrodroid.rb', line 4585

def initialize(h={})

  options = {
    timeout_delay_string: '1 Minute',
    timeout_delay: 60,
    custom_value_delay: 0
  }

  super(options.merge h)

end

Instance Method Details

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



4597
4598
4599
# File 'lib/ruby-macrodroid.rb', line 4597

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