Sha256: 768a6f617c64b15ee80e206a842cf30a6ad145016ec2f39380202b777307cf2c

Contents?: true

Size: 1.19 KB

Versions: 15

Compression:

Stored size: 1.19 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 Contact extracted from the WHOIS answer.
    #
    # A Contact is composed by the following attributes:
    #
    # <tt>:id</tt>::
    # <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, :name, :organization,
                                    :address, :city, :zip, :state, :country, :country_code,
                                    :phone, :fax, :email,
                                    :created_on, :updated_on)
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
whois-1.0.12 lib/whois/answer/contact.rb
whois-1.0.11 lib/whois/answer/contact.rb
whois-1.0.10 lib/whois/answer/contact.rb
whois-1.0.9 lib/whois/answer/contact.rb
whois-1.0.8 lib/whois/answer/contact.rb
whois-1.0.7 lib/whois/answer/contact.rb
whois-1.0.6 lib/whois/answer/contact.rb
whois-1.0.5 lib/whois/answer/contact.rb
whois-1.0.4 lib/whois/answer/contact.rb
whois-1.0.3 lib/whois/answer/contact.rb
whois-1.0.2 lib/whois/answer/contact.rb
whois-1.0.1 lib/whois/answer/contact.rb
whois-1.0.0 lib/whois/answer/contact.rb
whois-0.9.0 lib/whois/answer/contact.rb
whois-0.8.1 lib/whois/answer/contact.rb