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 inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ EndIfAction

Returns a new instance of EndIfAction.



339
340
341
342
343
344
345
346
347
# File 'lib/ruby-macrodroid/actions.rb', line 339

def initialize(h={})

  options = {
    constraint_list: ''
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object



349
350
351
# File 'lib/ruby-macrodroid/actions.rb', line 349

def to_s(colour: false)
  'End If'
end