Sha256: b7c87b3ed8cfd8e74f044ff5b2e868d60b9bd2061edfb8aef603ad5ab20d2913

Contents?: true

Size: 842 Bytes

Versions: 13

Compression:

Stored size: 842 Bytes

Contents

#--
# Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
# Copyright (c) 2009-2013 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

13 entries across 13 versions & 1 rubygems

Version Path
whois-3.4.3 lib/whois/record/parser/whois.aero.rb
whois-3.4.2 lib/whois/record/parser/whois.aero.rb
whois-3.4.1 lib/whois/record/parser/whois.aero.rb
whois-3.4.0 lib/whois/record/parser/whois.aero.rb
whois-3.3.1 lib/whois/record/parser/whois.aero.rb
whois-3.3.0 lib/whois/record/parser/whois.aero.rb
whois-3.2.1 lib/whois/record/parser/whois.aero.rb
whois-3.2.0 lib/whois/record/parser/whois.aero.rb
whois-3.1.3 lib/whois/record/parser/whois.aero.rb
whois-3.1.2 lib/whois/record/parser/whois.aero.rb
whois-3.1.1 lib/whois/record/parser/whois.aero.rb
whois-3.1.0 lib/whois/record/parser/whois.aero.rb
whois-3.0.0 lib/whois/record/parser/whois.aero.rb