Class: LaunchShortcutAction

Inherits:
ApplicationAction show all
Defined in:
lib/ruby-macrodroid/actions.rb

Overview

Category: Applications

Instance Attribute Summary

Attributes inherited from Action

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

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={})
  
  options = {
    :app_name=>"Amazon Alexa", :intent_encoded=>"", :name=>"Ask Alexa"
  }

  super(options.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