Class: LaunchShortcutAction
- Inherits:
-
ApplicationAction
- Object
- MacroObject
- Action
- ApplicationAction
- LaunchShortcutAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Overview
Category: Applications
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ LaunchShortcutAction
constructor
A new instance of LaunchShortcutAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ LaunchShortcutAction
Returns a new instance of LaunchShortcutAction.
169 170 171 172 173 174 175 176 177 |
# File 'lib/ruby-macrodroid/actions.rb', line 169 def initialize(h={}) = { :app_name=>"Amazon Alexa", :intent_encoded=>"", :name=>"Ask Alexa" } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
179 180 181 182 |
# File 'lib/ruby-macrodroid/actions.rb', line 179 def to_s(colour: false) @s = "Launch Shortcut: " + @h[:app_name] + "\n " + @h[:name] super() end |