Class: Biovision::Notifiers::UsersNotifier
- Inherits:
-
BaseNotifier
- Object
- BaseNotifier
- Biovision::Notifiers::UsersNotifier
- Defined in:
- app/lib/biovision/notifiers/users_notifier.rb
Overview
Notification mapper for socialization component
Constant Summary collapse
- TYPE_LOGIN_ATTEMPT =
'login_attempt'
Instance Attribute Summary
Attributes inherited from BaseNotifier
Instance Method Summary collapse
Methods inherited from BaseNotifier
[], #component, #entity, handler_class, #initialize, #notify, slug, #view
Constructor Details
This class inherits a constructor from Biovision::Notifiers::BaseNotifier
Instance Method Details
#new_login_attempt(track) ⇒ Object
10 11 12 |
# File 'app/lib/biovision/notifiers/users_notifier.rb', line 10 def new_login_attempt(track) check_and_notify(track[:ip_address]&.id, TYPE_LOGIN_ATTEMPT) end |