mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
15 lines
378 B
Ruby
15 lines
378 B
Ruby
class Epp::CommandsController < ApplicationController
|
|
include Epp::Common
|
|
include Epp::CommandsHelper
|
|
include Epp::DomainsHelper
|
|
|
|
OBJECT_TYPES = {
|
|
'http://www.nic.cz/xml/epp/domain-1.4 domain-1.4.xsd' => 'domain'
|
|
}
|
|
|
|
private
|
|
def create
|
|
type = OBJECT_TYPES[parsed_frame.css('create create').attr('schemaLocation').value]
|
|
send("create_#{type}")
|
|
end
|
|
end
|