lib/whois/parsers/base_icann_compliant.rb in whois-parser-1.0.0 vs lib/whois/parsers/base_icann_compliant.rb in whois-parser-1.0.1
- old
+ new
@@ -23,15 +23,15 @@
self.scanner = Scanners::BaseIcannCompliant
property_supported :domain do
- node('Domain Name', &:downcase)
+ node("Domain Name", &:downcase)
end
property_supported :domain_id do
- node('Registry Domain ID')
+ node("Registry Domain ID")
end
property_supported :status do
# status = Array.wrap(node('Domain Status'))
@@ -50,36 +50,36 @@
!available?
end
property_supported :created_on do
- node('Creation Date') do |value|
+ node("Creation Date") do |value|
parse_time(value)
end
end
property_supported :updated_on do
- node('Updated Date') do |value|
+ node("Updated Date") do |value|
parse_time(value)
end
end
property_supported :expires_on do
- node('Registrar Registration Expiration Date') do |value|
+ node("Registrar Registration Expiration Date") do |value|
parse_time(value)
end
end
property_supported :registrar do
- return unless node('Registrar')
- Parser::Registrar.new(
- id: node('Registrar IANA ID'),
- name: node('Registrar'),
- organization: node('Registrar'),
- url: node('Registrar URL'),
- )
+ return unless node("Registrar")
+ Parser::Registrar.new({
+ id: node("Registrar IANA ID"),
+ name: node("Registrar"),
+ organization: node("Registrar"),
+ url: node("Registrar URL"),
+ })
end
property_supported :registrant_contacts do
build_contact('Registrant', Parser::Contact::TYPE_REGISTRANT)
@@ -93,10 +93,10 @@
build_contact('Tech', Parser::Contact::TYPE_TECHNICAL)
end
property_supported :nameservers do
- Array.wrap(node('Name Server') || node('Name Servers')).reject(&:empty?).map do |name|
+ Array.wrap(node("Name Server") || node("Name Servers")).reject(&:empty?).map do |name|
Parser::Nameserver.new(name: name.downcase)
end
end