Class: ActionsNlp
Instance Method Summary collapse
- #actions(params) ⇒ Object
-
#initialize ⇒ ActionsNlp
constructor
A new instance of ActionsNlp.
Constructor Details
#initialize ⇒ ActionsNlp
Returns a new instance of ActionsNlp.
41 42 43 44 45 46 47 |
# File 'lib/ruby-macrodroid.rb', line 41 def initialize() super() params = {} actions(params) end |
Instance Method Details
#actions(params) ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'lib/ruby-macrodroid.rb', line 49 def actions(params) get /^message popup: (.*)/i do |msg| [ToastAction, {msg: msg}] end end |