Class: Password

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldsObject (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