You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
303 B
18 lines
303 B
class DsAdmin::Model::MailAliasRole
|
|
include DsAdmin::Model
|
|
|
|
attr_accessor :mail, :maildrop, :user
|
|
|
|
def initialize(args = {})
|
|
return if args.empty?
|
|
super(args)
|
|
|
|
@mail = args[:mail]
|
|
@maildrop = args[:maildrop]
|
|
@user = args[:user]
|
|
end
|
|
|
|
def site
|
|
@mail.sub(/.*@/, '')
|
|
end
|
|
end
|