Class: WardenWatch::AuthenticationEvent
- Inherits:
-
Object
- Object
- WardenWatch::AuthenticationEvent
- Defined in:
- lib/warden_watch/authentication_event.rb
Instance Method Summary collapse
-
#initialize(user, auth, opts) ⇒ AuthenticationEvent
constructor
A new instance of AuthenticationEvent.
- #track! ⇒ Object
Constructor Details
#initialize(user, auth, opts) ⇒ AuthenticationEvent
Returns a new instance of AuthenticationEvent.
3 4 5 6 7 |
# File 'lib/warden_watch/authentication_event.rb', line 3 def initialize(user, auth, opts) @user = user @auth = auth @opts = opts end |
Instance Method Details
#track! ⇒ Object
9 10 11 12 13 |
# File 'lib/warden_watch/authentication_event.rb', line 9 def track! if track? @user.track_visit!(@auth, @opts) end end |