enom 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/enom/domain.rb +1 -6
- metadata +2 -2
data/lib/enom/domain.rb
CHANGED
@@ -31,7 +31,6 @@ module Enom
|
|
31
31
|
def self.find(name)
|
32
32
|
sld, tld = name.split('.')
|
33
33
|
response = Client.request('Command' => 'GetDomainInfo', 'SLD' => sld, 'TLD' => tld)["interface_response"]["GetDomainInfo"]
|
34
|
-
p response if Client.test?
|
35
34
|
Domain.new(response)
|
36
35
|
end
|
37
36
|
|
@@ -40,8 +39,6 @@ module Enom
|
|
40
39
|
sld, tld = name.split('.')
|
41
40
|
response = Client.request("Command" => "Check", "SLD" => sld, "TLD" => tld)["interface_response"]["RRPCode"]
|
42
41
|
|
43
|
-
p response if Client.test?
|
44
|
-
|
45
42
|
if response == "210"
|
46
43
|
"available"
|
47
44
|
else
|
@@ -53,8 +50,6 @@ module Enom
|
|
53
50
|
def self.all(options = {})
|
54
51
|
response = Client.request("Command" => "GetAllDomains")["interface_response"]["GetAllDomains"]["DomainDetail"]
|
55
52
|
|
56
|
-
p response if Client.test?
|
57
|
-
|
58
53
|
domains = []
|
59
54
|
response.each {|d| domains << Domain.new(d) }
|
60
55
|
return domains
|
@@ -135,7 +130,7 @@ module Enom
|
|
135
130
|
|
136
131
|
def expiration_date
|
137
132
|
date_string = @domain_payload['interface_response']['GetDomainInfo']['status']['expiration']
|
138
|
-
Date.
|
133
|
+
Date.strptime(date_string.split(' ').first, "%m/%d/%Y")
|
139
134
|
end
|
140
135
|
|
141
136
|
def registration_status
|