Sha256: c552e8ca3674c4d30c1a8adf62391cec25f9560b0d34d3b5a6682f7ac8093bda

Contents?: true

Size: 843 Bytes

Versions: 3

Compression:

Stored size: 843 Bytes

Contents

#--
# Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
#++


require 'whois/record/parser/base_afilias'


module Whois
  class Record
    class Parser

      # Parser for the whois.aero server.
      # 
      # @see Whois::Record::Parser::Example
      #   The Example parser for the list of all available methods.
      #
      class WhoisAero < BaseAfilias

        property_supported :status do
          Array.wrap(node("Domain Status"))
        end


        property_supported :updated_on do
          node("Updated On") do |value|
            Time.parse(value)
          end
        end

        property_supported :expires_on do
          node("Expires On") do |value|
            Time.parse(value)
          end
        end

      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
whois-2.7.0 lib/whois/record/parser/whois.aero.rb
whois-2.6.4 lib/whois/record/parser/whois.aero.rb
whois-2.6.3 lib/whois/record/parser/whois.aero.rb