Sha256: 995301f6f1757b3f1d4b152cbb003da5a9e9325f318693cf892bb899cc2f271b

Contents?: true

Size: 1.4 KB

Versions: 9

Compression:

Stored size: 1.4 KB

Contents

#
# = Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
#
# Category::    Net
# Package::     Whois
# Author::      Simone Carletti <weppos@weppos.net>
# License::     MIT License
#
#--
#
#++


require 'whois/answer/super_struct'


module Whois
  class Answer

    #
    # = Contacts
    #
    # Holds the details of a <tt>Contact</tt> extracted from the WHOIS <tt>Answer</tt>.
    #
    # A <tt>Contact</tt> is composed by the following attributes:
    #
    #  * <tt>:id</tt>:
    #  * <tt>:type</tt>: the contact type (1 = registrant, 2 = admin, 3 = technical).
    #  * <tt>:name</tt>:
    #  * <tt>:organization</tt>:
    #  * <tt>:address</tt>:
    #  * <tt>:city</tt>:
    #  * <tt>:zip</tt>:
    #  * <tt>:state</tt>:
    #  * <tt>:country</tt>:
    #  * <tt>:country_code</tt>:
    #  * <tt>:phone</tt>:
    #  * <tt>:fax</tt>:
    #  * <tt>:email</tt>:
    #  * <tt>:created_on</tt>:
    #  * <tt>:updated_on</tt>:
    #
    # Be aware that every WHOIS server can return a different number of details
    # or no details at all.
    #
    class Contact < SuperStruct.new(:id, :type, :name, :organization,
                                    :address, :city, :zip, :state, :country, :country_code,
                                    :phone, :fax, :email,
                                    :created_on, :updated_on)

      TYPE_REGISTRANT = 1
      TYPE_ADMIN = 2
      TYPE_TECHNICAL = 3

    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
whois-1.2.1 lib/whois/answer/contact.rb
whois-1.2.0 lib/whois/answer/contact.rb
whois-1.1.8 lib/whois/answer/contact.rb
whois-1.1.7 lib/whois/answer/contact.rb
whois-1.1.6 lib/whois/answer/contact.rb
whois-1.1.5 lib/whois/answer/contact.rb
whois-1.1.4 lib/whois/answer/contact.rb
whois-1.1.3 lib/whois/answer/contact.rb
whois-1.1.2 lib/whois/answer/contact.rb