Class: SetAlarmClockAction
- Inherits:
-
DateTimeAction
- Object
- MacroObject
- Action
- DateTimeAction
- SetAlarmClockAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Overview
Category: Date/Time
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SetAlarmClockAction
constructor
A new instance of SetAlarmClockAction.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods included from ObjectX
#action_to_object, #object_create, #varify
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SetAlarmClockAction
Returns a new instance of SetAlarmClockAction.
951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 |
# File 'lib/ruby-macrodroid/actions.rb', line 951 def initialize(h={}) = { 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(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
970 971 972 |
# File 'lib/ruby-macrodroid/actions.rb', line 970 def to_s(colour: false, indent: 0) 'SetAlarmClockAction ' + @h.inspect end |