class Pwl::Entry
Attributes
name[RW]
password[RW]
uuid[RW]
Public Class Methods
new(name = nil)
click to toggle source
# File lib/pwl/entry.rb, line 18 def initialize(name = nil) @name = name @uuid = UUID.generate @password = nil end
Public Instance Methods
validate!()
click to toggle source
raises InvalidEntryError
if entry is not valid
# File lib/pwl/entry.rb, line 27 def validate! raise InvalidEntryError.new(errors) if invalid? end