lib/whois/record/parser/whois.co.ca.rb in whois-2.1.0 vs lib/whois/record/parser/whois.co.ca.rb in whois-2.2.0
- old
+ new
@@ -41,11 +41,16 @@
property_supported :registered? do
!available?
end
+ # NEWPROPERTY
+ def reserved?
+ !!(content_for_scanner =~ /^Domain is not available or is reserved by the registry/)
+ end
+
property_supported :created_on do
if content_for_scanner =~ /date_approved:\s+(.+)\n/
Time.parse($1)
end
end
@@ -61,15 +66,9 @@
property_supported :nameservers do
content_for_scanner.scan(/ns[\d]_hostname:\s+(.+)\n/).flatten.map do |name|
Record::Nameserver.new(name)
end
- end
-
-
- # NEWPROPERTY
- def reserved?
- !!(content_for_scanner =~ /^Domain is not available or is reserved by the registry/)
end
end
end