class RegularIntervalTrigger

Category: Date/Time

Regular Interval

Public Class Methods

new(h={}) click to toggle source
Calls superclass method Trigger::new
# File lib/ruby-macrodroid/triggers.rb, line 841
def initialize(h={})

  options = {
    ignore_reference_start_time: false,
    minutes: 0,
    seconds: 7200,
    start_hour: 9,
    start_minute: 10,
    use_alarm: false
  }

  super(options.merge h)

end

Public Instance Methods

to_s(colour: false) click to toggle source
# File lib/ruby-macrodroid/triggers.rb, line 856
def to_s(colour: false)
  
  interval = Subunit.new(units={minutes:60, hours:60}, \
                         seconds: @h[:seconds]).strfunit("%c")
  'Regular Interval ' + "\n  Interval: " + interval
  
end
Also aliased as: to_summary
to_summary(colour: false)
Alias for: to_s