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
1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 |
# File 'lib/ruby-macrodroid.rb', line 1146 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 |