class EPPClient::SmallRegistry

This handles the Smallregistry specificites.

See www.smallregistry.net/faqs/quelles-sont-les-specificites-du-serveur-epp

Constants

SCHEMAS_SR

Public Class Methods

new(attrs) click to toggle source

Sets the default for Smallregistry, that is, server and port, according to Smallregistry's documentation. www.smallregistry.net/faqs/quelles-sont-les-specificites-du-serveur-epp

Required Attributes

:client_id

the tag or username used with <login> requests.

:password

the password used with <login> requests.

:ssl_cert

the file containing the client certificate.

:ssl_key

the file containing the key of the certificate.

Optional Attributes

:test

sets the server to be the test server.

See EPPClient for other attributes.

Calls superclass method
# File lib/epp-client/smallregistry.rb, line 36
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
  if attrs.delete(:test) == true
    attrs[:server] ||= 'epp.test.smallregistry.net'
    attrs[:port] ||= 2700
  else
    attrs[:server] ||= 'epp.smallregistry.net'
    attrs[:port] ||= 700
  end
  @services = EPPClient::SCHEMAS_URL.values_at('domain', 'contact')
  super(attrs)
  @extensions << EPPClient::SCHEMAS_URL['sr']
end

Public Instance Methods

contact_create(contact) click to toggle source

Extends the EPPClient::Contact#contact_create so that the specific smallregistry's information are sent, the additionnal informations are :

one of :

:org

indicating that the contact is an organisation with the following informations :

:companySerial

the company's SIREN / RPPS / whatever serial number is required.

:person

indicating that the contact is a human person with the following informations :

:birthDate

the person's birth date.

:birthPlace

the person's birth place.

Calls superclass method
# File lib/epp-client/smallregistry.rb, line 101
def contact_create(contact)
  super # placeholder so that I can add some doc
end
contact_info(xml) click to toggle source

Extends the EPPClient::Contact#contact_info so that the specific smallregistry's informations are processed, the additionnal informations are :

one of :

:org

indicating that the contact is an organisation with the following informations :

:companySerial

the company's SIREN / RPPS / whatever serial number is required.

:person

indicating that the contact is a human person with the following informations :

:birthDate

the person's birth date.

:birthPlace

the person's birth place.

Calls superclass method
# File lib/epp-client/smallregistry.rb, line 67
def contact_info(xml)
  super # placeholder so that I can add some doc
end
contact_update(args) click to toggle source

Extends the EPPClient::Contact#contact_update so that the specific afnic update informations can be sent, the additionnal informations are :

:chg

changes one of :

:org

indicating that the contact is an organisation with the following informations :

[<tt>:companySerial</tt>]
  the company's SIREN / RPPS / whatever serial number is required.
:person

indicating that the contact is a human person with the following informations :

:birthDate

the person's birth date.

:birthPlace

the person's birth place.

Calls superclass method
# File lib/epp-client/smallregistry.rb, line 173
def contact_update(args)
  super # placeholder so that I can add some doc
end