account.rb 230 B

1234567891011121314151617181920212223
  1. script "serdes.rb"
  2. class Account
  3. include Serdes
  4. serdes_reader :id
  5. serdes_reader :pass
  6. serdes_reader :algo
  7. def initialize(nam, pas, alg = 'plain')
  8. @id = nam
  9. @algo = alg
  10. @pass = pas
  11. end
  12. end