module EPPClient::Session

This handles the basic session, login, logout, and hello.

Public Instance Methods

hello() click to toggle source

Sends an hello epp command.

# File lib/epp-client/session.rb, line 5
def hello
  send_request(command(&:hello))
end
login(new_pw = nil) click to toggle source

Perform the login command on the server. Takes an optionnal argument, the new password for the account.

# File lib/epp-client/session.rb, line 38
def login(new_pw = nil)
  response = send_request(login_xml(new_pw))

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

Performs the logout command, after it, the server terminates the connection.

# File lib/epp-client/session.rb, line 46
def logout
  response = send_request(command(&:logout))

  get_result(response)
end