Class: CallMissedTrigger

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

Returns a new instance of CallMissedTrigger.



356
357
358
359
360
361
362
363
364
# File 'lib/ruby-macrodroid/triggers.rb', line 356

def initialize(h={})

  options = {
    contact_list: [{:m_id=>"-2", :m_lookupKey=>"-2", :m_name=>"[Any Number]"}]
  }

  super(options.merge h)

end

Instance Method Details

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



366
367
368
# File 'lib/ruby-macrodroid/triggers.rb', line 366

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