Class: CallEndedTrigger

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

Returns a new instance of CallEndedTrigger.



345
346
347
348
349
350
351
352
353
354
355
356
357
# File 'lib/ruby-macrodroid/triggers.rb', line 345

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



359
360
361
# File 'lib/ruby-macrodroid/triggers.rb', line 359

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