Class: Monban::UseCase::Auth::Token::General
- Inherits:
-
Object
- Object
- Monban::UseCase::Auth::Token::General
- Includes:
- Getto::InitializeWith
- Defined in:
- lib/monban/use_case/auth/token/general.rb
Instance Method Summary collapse
Instance Method Details
#create(account_id:) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/monban/use_case/auth/token/general.rb', line 23 def create(account_id:) login = repository.login_type(account_id: account_id) case login when "full" then full.create(account_id: account_id) when "authy" then authy.create(account_id: account_id) else error.server_error! "invalid login: #{login} / #{account_id}" end end |