class Whois::Record::Parser::WhoisSx
Parser for the whois.sx server.
@see Whois::Record::Parser::Example
The Example parser for the list of all available methods.
Private Instance Methods
build_contact(element, type)
click to toggle source
# File lib/whois/record/parser/whois.sx.rb, line 114 def build_contact(element, type) node("#{element} ID") do |id| Record::Contact.new( :type => type, :id => id, :name => node("#{element} Name"), :organization => node("#{element} Organization"), :address => node("#{element} Street"), :city => node("#{element} City"), :zip => node("#{element} Postal Code"), :country => node("#{element} Country"), :email => node("#{element} Email") ) end end
parse_time(value)
click to toggle source
# File lib/whois/record/parser/whois.sx.rb, line 109 def parse_time(value) # Hack to remove usec. Do you know a better way? Time.utc(*Time.parse(value).to_a) end