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, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods included from ObjectX
#action_to_object, #object_create, #varify
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ LaunchShortcutAction
Returns a new instance of LaunchShortcutAction.
122 123 124 125 126 127 128 129 130 |
# File 'lib/ruby-macrodroid/actions.rb', line 122 def initialize(h={}) = { :app_name=>"Amazon Alexa", :intent_encoded=>"", :name=>"Ask Alexa" } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
132 133 134 135 |
# File 'lib/ruby-macrodroid/actions.rb', line 132 def to_s(colour: false, indent: 0) @s = "Launch Shortcut: " + @h[:app_name] + "\n" + @h[:name] super() end |