Class: SetAlarmClockAction

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

Overview

Category: Date/Time

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ SetAlarmClockAction



2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
# File 'lib/ruby-macrodroid.rb', line 2432

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