Class: Toot::Auth::Credentials

Inherits:
Struct
  • Object
show all
Defined in:
lib/toot/auth/credentials.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#passwordObject

Returns the value of attribute password

Returns:

  • (Object)

    the current value of password



2
3
4
# File 'lib/toot/auth/credentials.rb', line 2

def password
  @password
end

#usernameObject

Returns the value of attribute username

Returns:

  • (Object)

    the current value of username



2
3
4
# File 'lib/toot/auth/credentials.rb', line 2

def username
  @username
end

Instance Method Details

#hashed_passwordObject



4
5
6
# File 'lib/toot/auth/credentials.rb', line 4

def hashed_password
  OpenSSL::Digest::SHA256.digest(password)
end