Class: VirtualDomain
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- VirtualDomain
- Defined in:
- app/models/virtual_domain.rb
Overview
Email domains
Instance Attribute Summary collapse
-
#mx_records ⇒ Object
readonly
What are the DNS MX records for this VirtualDomain.
Instance Method Summary collapse
-
#does_resolve_to_host? ⇒ Boolean
Does this VirtualDomain’s MX record resolve to the local machine?.
Instance Attribute Details
#mx_records ⇒ Object (readonly)
What are the DNS MX records for this VirtualDomain
11 12 13 |
# File 'app/models/virtual_domain.rb', line 11 def mx_records @mx_records end |
Instance Method Details
#does_resolve_to_host? ⇒ Boolean
Does this VirtualDomain’s MX record resolve to the local machine?
19 20 21 |
# File 'app/models/virtual_domain.rb', line 19 def does_resolve_to_host? mx_records.include? Socket.gethostname end |