Class: PasswordStore
- Inherits:
-
Object
- Object
- PasswordStore
- Defined in:
- lib/lockr/pwdstore.rb
Overview
A password store contains an id of the site the password belongs to, the username to login and the password.
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#password ⇒ Object
Returns the value of attribute password.
-
#url ⇒ Object
Returns the value of attribute url.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(id, url, username, pwd) ⇒ PasswordStore
constructor
A new instance of PasswordStore.
Constructor Details
#initialize(id, url, username, pwd) ⇒ PasswordStore
Returns a new instance of PasswordStore.
7 8 9 10 11 12 |
# File 'lib/lockr/pwdstore.rb', line 7 def initialize(id,url,username,pwd) @id = id @url = url @username = username @password = pwd end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/lockr/pwdstore.rb', line 5 def id @id end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/lockr/pwdstore.rb', line 5 def password @password end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/lockr/pwdstore.rb', line 5 def url @url end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/lockr/pwdstore.rb', line 5 def username @username end |