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) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SendIntentAction
Returns a new instance of SendIntentAction.
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 |
# File 'lib/ruby-macrodroid/actions.rb', line 573 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) ⇒ Object Also known as: to_summary
595 596 597 |
# File 'lib/ruby-macrodroid/actions.rb', line 595 def to_s(colour: false) 'Send Intent ' + "\n " + @h[:action] end |