Class: Biovision::Notifiers::UsersNotifier

Inherits:
BaseNotifier show all
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

#notification, #user

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

Parameters:

  • track (Hash)


10
11
12
# File 'app/lib/biovision/notifiers/users_notifier.rb', line 10

def (track)
  check_and_notify(track[:ip_address]&.id, )
end