internetee-registry/app/views/epp/domains/check.xml.builder
2014-06-30 14:16:58 +03:00

20 lines
616 B
Ruby

xml.epp_head do
xml.response do
xml.result('code' => '1000') do
xml.msg 'Command completed successfully'
end
xml.resData do
xml.tag!('domain:chkData', 'xmlns:domain' => 'http://www.nic.cz/xml/epp/domain-1.4', 'xsi:schemaLocation' => 'http://www.nic.cz/xml/epp/domain-1.4 domain-1.4.xsd') do
@domains.each do |x|
xml.tag!('domain:cd') do
xml.tag!('domain:name', x[:name], 'avail' => x[:avail])
xml.tag!('domain:reason', x[:reason]) if x[:reason].present?
end
end
end
end
xml << render('/epp/shared/trID')
end
end