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