Class: SetAlarmClockAction

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

Overview

Category: Date/Time

Instance Attribute Summary

Attributes inherited from Action

#constraints

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

Returns a new instance of SetAlarmClockAction.



2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
# File 'lib/ruby-macrodroid.rb', line 2739

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