Class: EndIfAction

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

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(obj = {}) ⇒ EndIfAction

Returns a new instance of EndIfAction.



722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
# File 'lib/ruby-macrodroid/actions.rb', line 722

def initialize(obj={})
  
  h = if obj.is_a? Hash then
    obj
  elsif obj.is_a? Rexle::Element    
    {}
  else
    {}
  end
  

  options = {
    constraint_list: []
  }

  super()

end

Instance Method Details

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



741
742
743
# File 'lib/ruby-macrodroid/actions.rb', line 741

def to_s(colour: false, indent: 0)
  'End If'
end