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.
2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 |
# File 'lib/ruby-macrodroid.rb', line 2274 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
2288 2289 2290 |
# File 'lib/ruby-macrodroid.rb', line 2288 def to_s(colour: false) 'IntentReceivedTrigger ' + @h.inspect end |