mail_account.rb 257 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 require 'SystemData' class MailAccount < SystemData attr_accessor :mail, :mailbox def initialize(args = {}) super(args) @mail = args[:mail] @home = args[:home] @mailbox = args[:mailbox] end def site @mail.sub(/.*@/, '') end end