Class: Monban::Services::SignOut
- Inherits:
-
Object
- Object
- Monban::Services::SignOut
- Defined in:
- lib/monban/services/sign_out.rb
Overview
Sign out service. Signs the user out via warden
Instance Method Summary collapse
-
#initialize(warden) ⇒ SignOut
constructor
Initialize service.
-
#perform ⇒ Object
Perform the service.
Constructor Details
#initialize(warden) ⇒ SignOut
Initialize service
9 10 11 12 |
# File 'lib/monban/services/sign_out.rb', line 9 def initialize warden @warden = warden @user = warden.user end |
Instance Method Details
#perform ⇒ Object
Perform the service
15 16 17 |
# File 'lib/monban/services/sign_out.rb', line 15 def perform warden.logout end |