Class: IncomingCallTrigger

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

Returns a new instance of IncomingCallTrigger.



1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
# File 'lib/ruby-macrodroid.rb', line 1499

def initialize(h={})

  options = {
    incoming_call_from_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



1513
1514
1515
# File 'lib/ruby-macrodroid.rb', line 1513

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