Class: PostfixAdmin::Domain

Inherits:
ApplicationRecord show all
Defined in:
lib/postfix_admin/domain.rb

Constant Summary

Constants inherited from ApplicationRecord

ApplicationRecord::RE_DOMAIN_NAME_LIKE, ApplicationRecord::RE_DOMAIN_NAME_LIKE_BASE, ApplicationRecord::RE_DOMAIN_NAME_LIKE_WITH_ANCHORS, ApplicationRecord::RE_EMAIL_LIKE, ApplicationRecord::RE_EMAIL_LIKE_BASE, ApplicationRecord::RE_EMAIL_LIKE_WITH_ANCHORS

Instance Method Summary collapse

Methods inherited from ApplicationRecord

#active_str, #has_timestamp_columns?, #inactive?, #set_current_time_to_timestamp_columns

Instance Method Details

#aliases_strObject



64
65
66
# File 'lib/postfix_admin/domain.rb', line 64

def aliases_str
  max_num_str(aliases)
end

#mailboxes_strObject



68
69
70
# File 'lib/postfix_admin/domain.rb', line 68

def mailboxes_str
  max_num_str(mailboxes)
end

#maxquota_strObject



72
73
74
# File 'lib/postfix_admin/domain.rb', line 72

def maxquota_str
  max_num_str(maxquota)
end

#pure_aliasesObject

aliases that don’t belong to a mailbox



60
61
62
# File 'lib/postfix_admin/domain.rb', line 60

def pure_aliases
  rel_aliases.pure
end