class Whois::Parsers::WhoisSrsNetNz

Parser for the whois.srs.net.nz server.

@see Whois::Parsers::Example

The Example parser for the list of all available methods.

Public Instance Methods

invalid?() click to toggle source

NEWPROPERTY

# File lib/whois/parsers/whois.srs.net.nz.rb, line 129
def invalid?
  cached_properties_fetch(:invalid?) do
    status == :invalid
  end
end
response_throttled?() click to toggle source

Checks whether the response has been throttled.

@return [Boolean]

@example

query_status: 440 Request Denied
# File lib/whois/parsers/whois.srs.net.nz.rb, line 114
def response_throttled?
  cached_properties_fetch(:response_throttled?) do
    node("query_status") == "440 Request Denied"
  end
end
valid?() click to toggle source

NEWPROPERTY

# File lib/whois/parsers/whois.srs.net.nz.rb, line 122
def valid?
  cached_properties_fetch(:valid?) do
    !invalid?
  end
end

Private Instance Methods

build_contact(element, type) click to toggle source
# File lib/whois/parsers/whois.srs.net.nz.rb, line 138
def build_contact(element, type)
  node("#{element}_contact_name") do
    Parser::Contact.new(
      type:         type,
      id:           nil,
      name:         node("#{element}_contact_name"),
      address:      node("#{element}_contact_address1"),
      city:         node("#{element}_contact_city"),
      zip:          node("#{element}_contact_postalcode"),
      state:        node("#{element}_contact_province"),
      country:      node("#{element}_contact_country"),
      phone:        node("#{element}_contact_phone"),
      fax:          node("#{element}_contact_fax"),
      email:        node("#{element}_contact_email")
    )
  end
end