Class: FailedLoginTrigger

Inherits:
DeviceEventsTrigger show all
Defined in:
lib/ruby-macrodroid/triggers.rb

Overview

Category: Device Events

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ FailedLoginTrigger

Returns a new instance of FailedLoginTrigger.



916
917
918
919
920
921
922
923
924
# File 'lib/ruby-macrodroid/triggers.rb', line 916

def initialize(h={})

  options = {
    num_failures: 1
  }

  super(options.merge h)

end

Instance Method Details

#to_pcObject



926
927
928
# File 'lib/ruby-macrodroid/triggers.rb', line 926

def to_pc()
  'failed_login?'
end

#to_s(colour: false) ⇒ Object



930
931
932
# File 'lib/ruby-macrodroid/triggers.rb', line 930

def to_s(colour: false)
  'Failed Login Attempt'
end