Class: Security::Password

Inherits:
Object
  • Object
show all
Defined in:
lib/security/password.rb

Direct Known Subclasses

GenericPassword, InternetPassword

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keychain, attributes, password) ⇒ Password

Returns a new instance of Password.



9
10
11
12
13
# File 'lib/security/password.rb', line 9

def initialize(keychain, attributes, password)
  @keychain = Keychain.new(keychain)
  @attributes = attributes
  @password = password
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/security/password.rb', line 5

def attributes
  @attributes
end

#keychainObject (readonly)

Returns the value of attribute keychain.



5
6
7
# File 'lib/security/password.rb', line 5

def keychain
  @keychain
end

#passwordObject (readonly)

Returns the value of attribute password.



5
6
7
# File 'lib/security/password.rb', line 5

def password
  @password
end