Class: Toot::Auth::RemovesCredentials
- Inherits:
-
Object
- Object
- Toot::Auth::RemovesCredentials
- Defined in:
- lib/toot/auth/removes_credentials.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(*args) ⇒ Object
10 11 12 |
# File 'lib/toot/auth/removes_credentials.rb', line 10 def self.call(*args) new.call(*args) end |
Instance Method Details
#call(store_key: Toot.config.auth_credentials_store_key, username:) ⇒ Object
4 5 6 7 8 |
# File 'lib/toot/auth/removes_credentials.rb', line 4 def call(store_key: Toot.config.auth_credentials_store_key, username:) Toot.redis do |r| r.hdel store_key, username end end |