Class: EPPClient::Hostmaster

Inherits:
Base
  • Object
show all
Includes:
HostmasterConnection, HostmasterContact, HostmasterDomain, HostmasterHost, HostmasterRGP, HostmasterTransfer, HostmasterVersion, HostmasterXML
Defined in:
lib/epp-client/hostmaster.rb

Constant Summary collapse

SCHEMAS =
%w(domain-1.1 host-1.1 contact-1.1 rgp-1.1)

Constants included from HostmasterVersion

EPPClient::HostmasterVersion::VERSION

Instance Method Summary collapse

Methods included from HostmasterTransfer

#transfer, #transfer_process, #transfer_xml

Methods included from HostmasterRGP

#domain_restore, #domain_restore_xml

Methods included from HostmasterHost

#host_check, #host_check_process, #host_check_xml, #host_create, #host_create_process, #host_create_xml, #host_delete, #host_delete_xml, #host_info, #host_info_process, #host_info_xml, #host_update, #host_update_xml

Methods included from HostmasterContact

#contact_check_xml, #contact_create_xml, #contact_delete_xml, #contact_disclose_xml, #contact_info_process, #contact_info_xml, #contact_update_xml

Methods included from HostmasterDomain

#domain_check_xml, #domain_contacts_xml, #domain_create_process, #domain_create_xml, #domain_delete_xml, #domain_info_xml, #domain_nss_xml, #domain_period_xml, #domain_renew, #domain_renew_process, #domain_renew_xml, #domain_update_xml

Methods included from HostmasterConnection

#send_frame

Methods included from HostmasterXML

#hello

Constructor Details

#initialize(attrs) ⇒ Hostmaster

Returns a new instance of Hostmaster.



31
32
33
34
35
36
37
38
39
40
# File 'lib/epp-client/hostmaster.rb', line 31

def initialize(attrs)
  unless attrs.key?(:client_id) && attrs.key?(:password) && attrs.key?(:ssl_cert) && attrs.key?(:ssl_key)
    raise ArgumentError, "client_id, password, ssl_cert and ssl_key are required"
  end
  attrs[:server] ||= 'epp.hostmaster.ua'
  attrs[:port] ||= 700
  attrs[:version] ||= '1.0'
  @services = EPPClient::SCHEMAS_URL.values_at('domain', 'host', 'contact')
  super(attrs)
end