Class: SignalOnOffTrigger

Inherits:
Trigger show all
Defined in:
lib/ruby-macrodroid/triggers.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.



500
501
502
503
504
505
506
507
508
# File 'lib/ruby-macrodroid/triggers.rb', line 500

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



510
511
512
# File 'lib/ruby-macrodroid/triggers.rb', line 510

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