Class: FailedLoginTrigger
- Inherits:
-
DeviceEventsTrigger
- Object
- MacroObject
- Trigger
- DeviceEventsTrigger
- FailedLoginTrigger
- Defined in:
- lib/ruby-macrodroid/triggers.rb
Overview
Category: Device Events
Instance Attribute Summary
Attributes inherited from Trigger
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ FailedLoginTrigger
constructor
A new instance of FailedLoginTrigger.
- #to_pc ⇒ Object
- #to_s(colour: false) ⇒ Object
Methods inherited from Trigger
Methods inherited from MacroObject
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={}) = { num_failures: 1 } super(.merge h) end |
Instance Method Details
#to_pc ⇒ Object
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 |