Class: CallActiveTrigger

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

Overview

Category: Call/SMS

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

Returns a new instance of CallActiveTrigger.



257
258
259
260
261
262
263
264
265
266
267
# File 'lib/ruby-macrodroid/triggers.rb', line 257

def initialize(h={})

  options = {
    contact_list: [{:m_id=>"-2", :m_lookupKey=>"-2", :m_name=>"[Any Number]"}],
    secondary_class_type: 'CallActiveTrigger',
    signal_on: true
  }

  super(options.merge h)

end

Instance Method Details

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



269
270
271
# File 'lib/ruby-macrodroid/triggers.rb', line 269

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