Class: IncomingSMSTrigger

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, #to_s

Constructor Details

#initialize(h = {}) ⇒ IncomingSMSTrigger

Returns a new instance of IncomingSMSTrigger.



1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
# File 'lib/ruby-macrodroid.rb', line 1488

def initialize(h={})

  options = {
    sms_from_list: [{:m_id=>"-2", :m_lookupKey=>"-2", :m_name=>"[Any Number]"}],
    group_id_list: [],
    group_name_list: [],
    sms_content: '',
    option: 0,
    excludes: false,
    exact_match: false,
    enable_regex: false,
    sms_number_exclude: false
  }

  super(options.merge h)

end