Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update docblock

  • Loading branch information...
commit 8d59dbfa6100e4cd19bc57a954c47ab65108ec42 1 parent 7111bcc
Simone Carletti authored
4 lib/whois/record/parser/jobswhois.verisign-grs.com.rb
View
@@ -15,11 +15,7 @@ module Whois
class Record
class Parser
- #
- # = jobswhois.verisign-grs.com parser
- #
# Parser for the jobswhois.verisign-grs.com server.
- #
class JobswhoisVerisignGrsCom < Base
include Scanners::Ast
4 lib/whois/record/parser/whois.biz.rb
View
@@ -15,11 +15,7 @@ module Whois
class Record
class Parser
- #
- # = whois.biz parser
- #
# Parser for the whois.biz server.
- #
class WhoisBiz < Base
include Scanners::Ast
4 lib/whois/record/parser/whois.cnnic.cn.rb
View
@@ -15,11 +15,7 @@ module Whois
class Record
class Parser
- #
- # = whois.cnnic.cn parser
- #
# Parser for the whois.cnnic.cn server.
- #
class WhoisCnnicCn < Base
include Scanners::Ast
4 lib/whois/record/parser/whois.crsnic.net.rb
View
@@ -15,11 +15,7 @@ module Whois
class Record
class Parser
- #
- # = whois.crsnic.net parser
- #
# Parser for the whois.crsnic.net server.
- #
class WhoisCrsnicNet < Base
include Scanners::Ast
3  lib/whois/record/parser/whois.denic.de.rb
View
@@ -15,9 +15,6 @@ module Whois
class Record
class Parser
- #
- # = whois.denic.de parser
- #
# Parser for the whois.denic.de server.
#
# @author Simone Carletti <weppos@weppos.net>
4 lib/whois/record/parser/whois.iana.org.rb
View
@@ -15,11 +15,7 @@ module Whois
class Record
class Parser
- #
- # = whois.iana.org parser
- #
# Parser for the whois.iana.org server.
- #
class WhoisIanaOrg < Base
include Scanners::Ast
4 lib/whois/record/parser/whois.nic.cc.rb
View
@@ -15,11 +15,7 @@ module Whois
class Record
class Parser
- #
- # = whois.nic.cc parser
- #
# Parser for the whois.nic.cc server.
- #
class WhoisNicCc < Base
include Scanners::Ast
5 lib/whois/record/parser/whois.nic.fr.rb
View
@@ -14,9 +14,6 @@ module Whois
class Record
class Parser
- #
- # = whois.nic.fr parser
- #
# Parser for the whois.nic.fr server.
#
# NOTE: This parser is just a stub and provides only a few basic methods
@@ -101,7 +98,7 @@ class WhoisNicFr < Base
end
- private
+ private
MULTIVALUE_KEYS = %w( address )
3  lib/whois/record/parser/whois.nic.hu.rb
View
@@ -15,9 +15,6 @@ module Whois
class Record
class Parser
- #
- # = whois.nic.hu parser
- #
# Parser for the whois.nic.hu server.
#
# @author Simone Carletti <weppos@weppos.net>
36 lib/whois/record/parser/whois.nic.it.rb
View
@@ -15,11 +15,7 @@ module Whois
class Record
class Parser
- #
- # = whois.nic.it parser
- #
# Parser for the whois.nic.it server.
- #
class WhoisNicIt < Base
include Scanners::Ast
@@ -30,7 +26,7 @@ class WhoisNicIt < Base
property_supported :domain do
- node("Domain") { |raw| raw.downcase }
+ node("Domain") { |str| str.downcase }
end
property_not_supported :domain_id
@@ -82,24 +78,24 @@ def reserved?
property_supported :created_on do
- node("Created") { |raw| Time.parse(raw) }
+ node("Created") { |str| Time.parse(str) }
end
property_supported :updated_on do
- node("Last Update") { |raw| Time.parse(raw) }
+ node("Last Update") { |str| Time.parse(str) }
end
property_supported :expires_on do
- node("Expire Date") { |raw| Time.parse(raw) }
+ node("Expire Date") { |str| Time.parse(str) }
end
property_supported :registrar do
- node("Registrar") do |raw|
+ node("Registrar") do |str|
Record::Registrar.new(
- :id => raw["Name"],
- :name => raw["Name"],
- :organization => raw["Organization"]
+ :id => str["Name"],
+ :name => str["Name"],
+ :organization => str["Organization"]
)
end
end
@@ -133,7 +129,7 @@ def response_unavailable?
!!node("response:unavailable")
end
- # Initializes a new {Scanners::WhoisIt} instance
+ # Initializes a new {Scanners::WhoisNicIt} instance
# passing the {#content_for_scanner}
# and calls +parse+ on it.
#
@@ -146,21 +142,21 @@ def parse
private
def contact(element, type)
- node(element) do |raw|
- address = (raw["Address"] || "").split("\n")
+ node(element) do |str|
+ address = (str["Address"] || "").split("\n")
company = address.size == 6 ? address.shift : nil
Record::Contact.new(
- :id => raw["ContactID"],
+ :id => str["ContactID"],
:type => type,
- :name => raw["Name"],
- :organization => raw["Organization"] || company,
+ :name => str["Name"],
+ :organization => str["Organization"] || company,
:address => address[0],
:city => address[1],
:zip => address[2],
:state => address[3],
:country_code => address[4],
- :created_on => raw["Created"] ? Time.parse(raw["Created"]) : nil,
- :updated_on => raw["Last Update"] ? Time.parse(raw["Last Update"]) : nil
+ :created_on => str["Created"] ? Time.parse(str["Created"]) : nil,
+ :updated_on => str["Last Update"] ? Time.parse(str["Last Update"]) : nil
)
end
end
4 lib/whois/record/parser/whois.nic.tv.rb
View
@@ -15,11 +15,7 @@ module Whois
class Record
class Parser
- #
- # = whois.nic.tv parser
- #
# Parser for the whois.nic.tv server.
- #
class WhoisNicTv < Base
include Scanners::Ast
3  lib/whois/record/parser/whois.tld.ee.rb
View
@@ -15,9 +15,6 @@ module Whois
class Record
class Parser
- #
- # = whois.tld.ee parser
- #
# Parser for the whois.tld.ee server.
#
# NOTE: This parser is just a stub and provides only a few basic methods
Please sign in to comment.
Something went wrong with that request. Please try again.