mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
parent
dbf5c8b4aa
commit
7147144894
8 changed files with 38 additions and 18 deletions
|
@ -133,7 +133,7 @@ class Epp::Contact < Contact
|
|||
],
|
||||
'2305' => [ # Association exists
|
||||
[:domains, :exist]
|
||||
],
|
||||
]
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -165,8 +165,7 @@ class Epp::Contact < Contact
|
|||
|
||||
identifier = Ident.new(code: ident,
|
||||
type: ident_frame.attr('type'),
|
||||
country_code: ident_frame.attr('cc')
|
||||
)
|
||||
country_code: ident_frame.attr('cc'))
|
||||
|
||||
identifier.validate
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ module EPP
|
|||
|
||||
def self.from_xml(xml)
|
||||
xml_doc = Nokogiri::XML(xml)
|
||||
response = self.new
|
||||
response = new
|
||||
|
||||
result_elements = xml_doc.css('result')
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ module EPP
|
|||
'2001' => :syntax_error,
|
||||
'2003' => :required_param_missing,
|
||||
'2005' => :param_syntax_error,
|
||||
'2308' => :data_management_policy_violation,
|
||||
'2308' => :data_management_policy_violation
|
||||
}
|
||||
|
||||
attr_accessor :code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue