Class: CallEndedTrigger

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

Returns a new instance of CallEndedTrigger.



1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
# File 'lib/ruby-macrodroid.rb', line 1550

def initialize(h={})

  options = {
    contact_list: [{:m_id=>"-2", :m_lookupKey=>"-2", :m_name=>"[Any Number]"}],
    group_id_list: [],
    group_name_list: [],
    option: 0,
    phone_number_exclude: false
  }

  super(options.merge h)

end

Instance Method Details

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



1564
1565
1566
# File 'lib/ruby-macrodroid.rb', line 1564

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