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.



2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
# File 'lib/ruby-macrodroid.rb', line 2274

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



2288
2289
2290
# File 'lib/ruby-macrodroid.rb', line 2288

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