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 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
1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 |
# File 'lib/ruby-macrodroid.rb', line 1534 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 |