Class: Whois::Domain::Pro
- Inherits:
-
Base
- Object
- Base
- Whois::Domain::Pro
show all
- Defined in:
- lib/whois/domain/pro.rb
Constant Summary
collapse
- HOST =
"whois.registrypro.pro"
- ATTR_MATCH =
/^([^:]+):\W*(.*)\r$/
- ATTR_NAMES =
{
:registrar_name => "Sponsoring Registrar",
:created_on => "Created On",
:updated_on => "Last Updated On",
:expires_on => "Expiration Date"
}
Instance Attribute Summary
Attributes inherited from Base
#name, #raw
Instance Method Summary
collapse
Methods inherited from Base
#administrative_id, #attrs, #created_on, #database_updated_at, #expired?, #expires_on, #host, #initialize, #lookup_restricted?, #name_servers, #ns, #registered?, #registrant_id, #registrar_name, responds_to, #to_s, #updated_on, #whois_server
Instance Method Details
#available? ⇒ Boolean
21
22
23
|
# File 'lib/whois/domain/pro.rb', line 21
def available?
@raw =~ /^NOT FOUND/
end
|
#register_url ⇒ Object
17
18
19
|
# File 'lib/whois/domain/pro.rb', line 17
def register_url
"http://www.registrypro.pro/partners_findaregistrar.htm"
end
|
#status ⇒ Object
13
14
15
|
# File 'lib/whois/domain/pro.rb', line 13
def status
attrs["Status"] ? attrs["Status"][0].split(",").collect{|d| d.strip} : nil
end
|