Class: EppClient::Registrobr::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/epp_client/registrobr/client.rb

Defined Under Namespace

Classes: PostConnectionCheckError, SSLSocketError, TemplateNotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hostObject

Returns the value of attribute host.



4
5
6
# File 'lib/epp_client/registrobr/client.rb', line 4

def host
  @host
end

#portObject

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
  
  
  check_response = send_request(:domain_check)
  
  logout
  close_connection
  
  check_response
end