Class: SendIntentAction
- Inherits:
-
ConnectivityAction
- Object
- MacroObject
- Action
- ConnectivityAction
- SendIntentAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Overview
Category: Connectivity
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SendIntentAction
constructor
A new instance of SendIntentAction.
- #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 = {}) ⇒ SendIntentAction
Returns a new instance of SendIntentAction.
908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 |
# File 'lib/ruby-macrodroid/actions.rb', line 908 def initialize(h={}) = { action: '', class_name: '', data: '', extra1_name: '', extra1_value: '', extra2_name: '', extra2_value: '', extra3_name: '', extra3_value: '', extra4_name: '', extra4_value: '', package_name: '', target: 'Activity' } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
930 931 932 |
# File 'lib/ruby-macrodroid/actions.rb', line 930 def to_s(colour: false, indent: 0) 'Send Intent ' + "\n " + @h[:action] end |