Class: EppXml::Contact
Instance Attribute Summary
#cl_trid, #cl_trid_prefix
Instance Method Summary
collapse
#clTRID, #initialize
Instance Method Details
#check(xml_params = {}, custom_params = {}) ⇒ Object
11
12
13
|
# File 'lib/epp-xml/contact.rb', line 11
def check(xml_params = {}, custom_params = {})
build('check', xml_params, custom_params)
end
|
#create(xml_params = {}, custom_params = {}) ⇒ Object
7
8
9
|
# File 'lib/epp-xml/contact.rb', line 7
def create(xml_params = {}, custom_params = {})
build('create', xml_params, custom_params)
end
|
#delete(xml_params = {}, custom_params = {}) ⇒ Object
19
20
21
|
# File 'lib/epp-xml/contact.rb', line 19
def delete(xml_params = {}, custom_params = {})
build('delete', xml_params, custom_params)
end
|
#info(xml_params = {}, custom_params = {}) ⇒ Object
15
16
17
|
# File 'lib/epp-xml/contact.rb', line 15
def info(xml_params = {}, custom_params = {})
build('info', xml_params, custom_params)
end
|
#transfer(xml_params = {}, op = 'query', custom_params = {}) ⇒ Object
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/epp-xml/contact.rb', line 27
def transfer(xml_params = {}, op = 'query', custom_params = {})
xml = Builder::XmlMarkup.new
xml.instruct!(:xml, standalone: 'no')
xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0') do
xml.command do
xml.transfer('op' => op) do
xml.tag!('contact:transfer', 'xmlns:contact' => 'https://epp.tld.ee/schema/contact-eis-1.0.xsd') do
EppXml.generate_xml_from_hash(xml_params, xml, 'contact:')
end
end
EppXml.custom_ext(xml, custom_params)
xml.clTRID(clTRID) if clTRID
end
end
end
|
#update(xml_params = {}, custom_params = {}) ⇒ Object
23
24
25
|
# File 'lib/epp-xml/contact.rb', line 23
def update(xml_params = {}, custom_params = {})
build('update', xml_params, custom_params)
end
|