Class: CallMissedTrigger

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



1575
1576
1577
1578
1579
1580
1581
1582
1583
# File 'lib/ruby-macrodroid.rb', line 1575

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



1585
1586
1587
# File 'lib/ruby-macrodroid.rb', line 1585

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