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
-
#hello ⇒ Object
Sends an hello epp command.
-
#login(new_pw = nil) ⇒ Object
Perform the login command on the server.
-
#logout ⇒ Object
Performs the logout command, after it, the server terminates the connection.
Instance Method Details
#hello ⇒ Object
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 login(new_pw = nil) response = send_request(login_xml(new_pw)) get_result(response) end |
#logout ⇒ Object
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 |