Class: SignalOnOffTrigger

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

Overview

Category: Connectivity

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

Returns a new instance of SignalOnOffTrigger.



1712
1713
1714
1715
1716
1717
1718
1719
1720
# File 'lib/ruby-macrodroid.rb', line 1712

def initialize(h={})

  options = {
    signal_on: true
  }

  super(options.merge h)

end

Instance Method Details

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



1722
1723
1724
# File 'lib/ruby-macrodroid.rb', line 1722

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