Class: SunriseSunsetTrigger

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

Overview

Category: Location

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 = {}) ⇒ SunriseSunsetTrigger

Returns a new instance of SunriseSunsetTrigger.



1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
# File 'lib/ruby-macrodroid/triggers.rb', line 1316

def initialize(h={})

  options = {
    option: 0,
    time_adjust_seconds: 0
  }

  super(options.merge h)

end

Instance Method Details

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



1327
1328
1329
# File 'lib/ruby-macrodroid/triggers.rb', line 1327

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