mail_alias_person.rb
344 Bytes
class DsAdmin::Model::MailAliasPerson
include DsAdmin::Model
attr_accessor :mail, :maildrop, :surname, :name
def initialize(args = {})
return if args.empty?
super(args)
@mail = args[:mail]
@maildrop = args[:maildrop]
@surname = args[:surname]
@name = args[:name]
end
def site
@mail.sub(/.*@/, '')
end
end