Class: Security::Password

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

Overview

:nodoc:

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.



12
13
14
15
16
# File 'lib/security/password.rb', line 12

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.



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

def attributes
  @attributes
end

#keychainObject (readonly)

Returns the value of attribute keychain.



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

def keychain
  @keychain
end

#passwordObject (readonly)

Returns the value of attribute password.



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

def password
  @password
end