Class: EppClient::Registrobr::Client
- Inherits:
-
Object
- Object
- EppClient::Registrobr::Client
- Defined in:
- lib/epp_client/registrobr/client.rb
Defined Under Namespace
Classes: PostConnectionCheckError, SSLSocketError, TemplateNotFoundError
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
- #check(domain) ⇒ Object
-
#initialize(host, port) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(host, port) ⇒ Client
Returns a new instance of Client.
6 7 8 |
# File 'lib/epp_client/registrobr/client.rb', line 6 def initialize(host, port) @host, @port = host, port end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
4 5 6 |
# File 'lib/epp_client/registrobr/client.rb', line 4 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
4 5 6 |
# File 'lib/epp_client/registrobr/client.rb', line 4 def port @port end |
Instance Method Details
#check(domain) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/epp_client/registrobr/client.rb', line 10 def check(domain) @domain = domain connect login check_response = send_request(:domain_check) logout close_connection check_response end |