Class: Whois::Parsers::Example

Inherits:
Base
  • Object
show all
Defined in:
lib/whois/parsers/example.rb

Overview

Note:

This parser is just a stub and provides only a few basic methods to check for domain availability and get domain status. Please consider to contribute implementing missing methods.

Parser for the whois.example.com server.

In case you are not implementing all the methods, please add the following statement to the class docblock.

Instance Attribute Summary

Attributes inherited from Base

#part

Instance Method Summary collapse

Methods inherited from Base

#changed?, #contacts, #content, #initialize, #is, parse_time, property_not_implemented, property_not_supported, property_register, property_state, property_state?, property_supported, #property_supported?, #response_incomplete?, #response_throttled?, #response_unavailable?, #unchanged?, #validate!

Constructor Details

This class inherits a constructor from Whois::Parsers::Base

Instance Method Details

#nameserversArray<Parser::Nameserver>

Gets the list of name server entries for this record, extracted from the registry record.

Examples:

nameserver
# => []
nameserver
# => [
#     #<struct Parser::Nameserver name="ns1.google.com">,
#     #<struct Parser::Nameserver name="ns2.google.com">
#    ]

Returns:



156
157
158
# File 'lib/whois/parsers/example.rb', line 156

property_supported :nameservers do
  []
end