Class: SunriseSunsetTrigger

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

Overview

Category: Location

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ SunriseSunsetTrigger

Returns a new instance of SunriseSunsetTrigger.



2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
# File 'lib/ruby-macrodroid.rb', line 2122

def initialize(h={})

  options = {
    option: 0,
    time_adjust_seconds: 0
  }

  super(options.merge h)

end