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, #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.



2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
# File 'lib/ruby-macrodroid.rb', line 2449

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



2460
2461
2462
# File 'lib/ruby-macrodroid.rb', line 2460

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