Class: IntentReceivedTrigger

Inherits:
DeviceEventsTrigger show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Device Events

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

Returns a new instance of IntentReceivedTrigger.



2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
# File 'lib/ruby-macrodroid.rb', line 2280

def initialize(h={})

  options = {
    action: '',
    extra_params: [],
    extra_value_patterns: [],
    extra_variables: [],
    enable_regex: false
  }

  super(options.merge h)

end

Instance Method Details

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



2294
2295
2296
# File 'lib/ruby-macrodroid.rb', line 2294

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