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.



4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
# File 'lib/ruby-macrodroid.rb', line 4599

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



4611
4612
4613
# File 'lib/ruby-macrodroid.rb', line 4611

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