Class: Password
- Inherits:
-
Object
- Object
- Password
- Defined in:
- lib/key.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
Instance Method Summary collapse
- #find(name) ⇒ Object
-
#initialize(hash_) ⇒ Password
constructor
A new instance of Password.
Constructor Details
#initialize(hash_) ⇒ Password
Returns a new instance of Password.
41 42 43 |
# File 'lib/key.rb', line 41 def initialize(hash_) @fields = hash_ end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
35 36 37 |
# File 'lib/key.rb', line 35 def fields @fields end |
Instance Method Details
#find(name) ⇒ Object
37 38 39 |
# File 'lib/key.rb', line 37 def find(name) @fields[name] end |