Class: Toot::Auth::Credentials
- Inherits:
-
Struct
- Object
- Struct
- Toot::Auth::Credentials
- Defined in:
- lib/toot/auth/credentials.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password
2 3 4 |
# File 'lib/toot/auth/credentials.rb', line 2 def password @password end |
#username ⇒ Object
Returns the value of attribute username
2 3 4 |
# File 'lib/toot/auth/credentials.rb', line 2 def username @username end |
Instance Method Details
#hashed_password ⇒ Object
4 5 6 |
# File 'lib/toot/auth/credentials.rb', line 4 def hashed_password OpenSSL::Digest::SHA256.digest(password) end |