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.



43
44
45
# File 'lib/key.rb', line 43

def initialize(hash_)
  @fields = hash_
end

Instance Attribute Details

#fieldsObject (readonly)

Returns the value of attribute fields.



37
38
39
# File 'lib/key.rb', line 37

def fields
  @fields
end

Instance Method Details

#find(name) ⇒ Object



39
40
41
# File 'lib/key.rb', line 39

def find(name)
  @fields[name]
end