mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Use central method for appending legaldocs to domains/contacts
This commit is contained in:
parent
7caa544c83
commit
50bf708b6a
10 changed files with 61 additions and 73 deletions
|
@ -19,6 +19,7 @@ module Deserializers
|
|||
obj[:tech_domain_contacts_attributes] = tech_contacts
|
||||
obj[:nameservers_attributes] = nameservers
|
||||
obj[:dnskeys_attributes] = dns_keys
|
||||
obj[:legal_document] = legal_document
|
||||
|
||||
obj
|
||||
end
|
||||
|
@ -42,6 +43,10 @@ module Deserializers
|
|||
def dns_keys
|
||||
@dns_keys ||= ::Deserializers::Xml::DnssecKeys.new(frame).key_data
|
||||
end
|
||||
|
||||
def legal_document
|
||||
@legal_document ||= ::Deserializers::Xml::LegalDocument.new(frame).call
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue