Module: EPPClient::Session

Included in:
Base
Defined in:
lib/epp-client/session.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#helloObject

Sends an hello epp command.



5
6
7
# File 'lib/epp-client/session.rb', line 5

def hello
  send_request(command(&:hello))
end

#login(new_pw = nil) ⇒ Object

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



38
39
40
41
42
# File 'lib/epp-client/session.rb', line 38

def (new_pw = nil)
  response = send_request((new_pw))

  get_result(response)
end

#logoutObject

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



46
47
48
49
50
# File 'lib/epp-client/session.rb', line 46

def logout
  response = send_request(command(&:logout))

  get_result(response)
end