Class: Monban::Services::SignOut

Inherits:
Object
  • Object
show all
Defined in:
lib/monban/services/sign_out.rb

Overview

Sign out service. Signs the user out via warden

Since:

  • 0.0.15

Instance Method Summary collapse

Constructor Details

#initialize(warden) ⇒ SignOut

Initialize service

Parameters:

  • warden (Warden)

    warden

Since:

  • 0.0.15



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

#performObject

Perform the service

Since:

  • 0.0.15



15
16
17
# File 'lib/monban/services/sign_out.rb', line 15

def perform
  warden.logout
end