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.



7
8
9
10
11
# File 'lib/security/password.rb', line 7

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.



3
4
5
# File 'lib/security/password.rb', line 3

def attributes
  @attributes
end

#keychainObject (readonly)

Returns the value of attribute keychain.



3
4
5
# File 'lib/security/password.rb', line 3

def keychain
  @keychain
end

#passwordObject (readonly)

Returns the value of attribute password.



3
4
5
# File 'lib/security/password.rb', line 3

def password
  @password
end