Class: RegularIntervalTrigger

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

Overview

Category: Date/Time

Regular Interval

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ RegularIntervalTrigger

Returns a new instance of RegularIntervalTrigger.



1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
# File 'lib/ruby-macrodroid.rb', line 1996

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

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



2011
2012
2013
# File 'lib/ruby-macrodroid.rb', line 2011

def to_s(colour: false)
  'RegularIntervalTrigger ' + @h.inspect
end