Class: RegularIntervalTrigger

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

Overview

Category: Date/Time

Regular Interval

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ RegularIntervalTrigger

Returns a new instance of RegularIntervalTrigger.



1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
# File 'lib/ruby-macrodroid.rb', line 1747

def initialize(h={})

  options = {
    ignore_reference_start_time: false,
    minutes: 0,
    seconds: 7200,
    start_hour: 9,
    start_minute: 10,
    use_alarm: false
  }

  super(options.merge h)

end