Class: SunriseSunsetTrigger
- Inherits:
-
Trigger
- Object
- MacroObject
- Trigger
- SunriseSunsetTrigger
- Defined in:
- lib/ruby-macrodroid/triggers.rb
Overview
Category: Location
Instance Attribute Summary
Attributes inherited from Trigger
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SunriseSunsetTrigger
constructor
A new instance of SunriseSunsetTrigger.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Trigger
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SunriseSunsetTrigger
Returns a new instance of SunriseSunsetTrigger.
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 |
# File 'lib/ruby-macrodroid/triggers.rb', line 1311 def initialize(h={}) = { option: 0, time_adjust_seconds: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
1322 1323 1324 |
# File 'lib/ruby-macrodroid/triggers.rb', line 1322 def to_s(colour: false) 'SunriseSunsetTrigger ' + @h.inspect end |