Class: PasswordStore

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/lockr/pwdstore.rb', line 5

def id
  @id
end

#passwordObject

Returns the value of attribute password.



5
6
7
# File 'lib/lockr/pwdstore.rb', line 5

def password
  @password
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/lockr/pwdstore.rb', line 5

def url
  @url
end

#usernameObject

Returns the value of attribute username.



5
6
7
# File 'lib/lockr/pwdstore.rb', line 5

def username
  @username
end