Class: FailedLoginTrigger

Inherits:
DeviceEventsTrigger show all
Defined in:
lib/ruby-macrodroid.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.



1934
1935
1936
1937
1938
1939
1940
1941
1942
# File 'lib/ruby-macrodroid.rb', line 1934

def initialize(h={})

  options = {
    num_failures: 1
  }

  super(options.merge h)

end

Instance Method Details

#to_pcObject



1944
1945
1946
# File 'lib/ruby-macrodroid.rb', line 1944

def to_pc()
  'failed_login?'
end

#to_sObject



1948
1949
1950
# File 'lib/ruby-macrodroid.rb', line 1948

def to_s()
  'Failed Login Attempt'
end