Class: DayTrigger
- Inherits:
-
Trigger
- Object
- MacroObject
- Trigger
- DayTrigger
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Date/Time
Also known as Day of Week/Month
month_of_year equal to 0 means it occurs every month day_of_week starts with a Monday (value is 0)
Instance Attribute Summary
Attributes inherited from Trigger
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ DayTrigger
constructor
A new instance of DayTrigger.
Methods inherited from Trigger
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ DayTrigger
Returns a new instance of DayTrigger.
1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 |
# File 'lib/ruby-macrodroid.rb', line 1806 def initialize(h={}) = { alarm_id: uuid(), hour: 9, minute: 0, month_of_year: 0, option: 0, day_of_week: 2, day_of_month: 0, use_alarm: false } super(.merge h) end |