module EPPClient::Poll

This implements the poll EPP commands.

Constants

PARSERS

Public Instance Methods

poll_ack(mid = @msgQ_id) click to toggle source

sends a <epp:poll op="ack" msgID="<mid>"> command to the server. Most of the time, you should not pass any argument, as it will “do the right thing”.

# File lib/epp-client/poll.rb, line 64
def poll_ack(mid = @msgQ_id)
  response = send_request(poll_ack_xml(mid))

  get_result(response)
end
poll_req() click to toggle source

sends a <epp:poll op="req"> command to the server.

if there is a message in the queue, returns a hash with the following keys :

:qDate

the date and time that the message was enqueued.

:msg, :msg_xml

a human readble message, the :msg version has all the possible xml stripped, whereas the :msg_xml contains the original message.

:obj, :obj_xml

contains a possible <epp:resData> object, the original one in :obj_xml, and if a parser is available, the parsed one in :obj.

# File lib/epp-client/poll.rb, line 22
def poll_req
  response = send_request(poll_req_xml)

  get_result(:xml => response, :callback => :poll_req_process)
end