Upadted whois domain body

This commit is contained in:
Priit Tark 2015-04-16 11:55:20 +03:00
parent f2f2e42608
commit 92f41ebe0b

View file

@ -241,15 +241,14 @@ class Domain < ActiveRecord::Base
# rubocop:disable Metrics/MethodLength # rubocop:disable Metrics/MethodLength
def update_whois_body def update_whois_body
self.whois_body = <<-EOS self.whois_body = <<-EOS
This Whois Server contains information on Estonia .ee Top Level Domain WHOIS server
Estonian Top Level Domain ee TLD
domain: #{name} domain: #{name}
registrar: #{registrar} registrant: #{owner_contact.name}
status: status: #{domain_statuses.map(&:value).join(', ')}
registered: #{registered_at and registered_at.to_s(:db)} registered: #{registered_at and registered_at.to_s(:db)}
changed: #{updated_at and updated_at.to_s(:db)} changed: #{updated_at and updated_at.to_s(:db)}
expire: expire: #{valid_to and valid_to.to_s(:db)}
outzone: outzone:
delete: delete:
@ -263,6 +262,9 @@ class Domain < ActiveRecord::Base
address: #{registrar.address} address: #{registrar.address}
created: #{registrar.created_at.to_s(:db)} created: #{registrar.created_at.to_s(:db)}
changed: #{registrar.updated_at.to_s(:db)} changed: #{registrar.updated_at.to_s(:db)}
Estonia .ee Top Level Domain WHOIS server
More information at http://internet.ee
EOS EOS
end end
# rubocop:enable Metrics/MethodLength # rubocop:enable Metrics/MethodLength