Class: SendIntentAction

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

Overview

Category: Connectivity

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 included from ObjectX

#action_to_object, #object_create, #varify

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ SendIntentAction



687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
# File 'lib/ruby-macrodroid/actions.rb', line 687

def initialize(h={})

  options = {
    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(options.merge h)

end

Instance Method Details

#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary



709
710
711
# File 'lib/ruby-macrodroid/actions.rb', line 709

def to_s(colour: false, indent: 0)
  'Send Intent ' + "\n  " + @h[:action]
end