Class: SetAlarmClockAction

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ SetAlarmClockAction

Returns a new instance of SetAlarmClockAction.



1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
# File 'lib/ruby-macrodroid.rb', line 1574

def initialize(h={})

  options = {
    days_of_week: [false, false, false, false, false, false, false],
    label: 'wakeup mum',
    delay_in_minutes: 1,
    hour: 8,
    delay_in_hours: 0,
    minute: 15,
    one_off: true,
    option: 0,
    relative: true,
    day_option: 0
  }

  super(options.merge h)

end