Class: IntentReceivedTrigger
- Inherits:
-
DeviceEventsTrigger
- Object
- MacroObject
- Trigger
- DeviceEventsTrigger
- IntentReceivedTrigger
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Device Events
Instance Attribute Summary
Attributes inherited from Trigger
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ IntentReceivedTrigger
constructor
A new instance of IntentReceivedTrigger.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Trigger
Methods inherited from MacroObject
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={}) = { action: '', extra_params: [], extra_value_patterns: [], extra_variables: [], enable_regex: false } super(.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 |