Class: Whois::Parsers::WhoisSrsNetNz

Inherits:
Base
  • Object
show all
Includes:
Scanners::Scannable
Defined in:
lib/whois/parsers/whois.srs.net.nz.rb

Overview

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

Instance Attribute Summary

Attributes inherited from Base

#part

Instance Method Summary collapse

Methods included from Scanners::Scannable

included, #node, #node?, #parse

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_unavailable?, #unchanged?, #validate!

Constructor Details

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

Instance Method Details

#invalid?Boolean

NEWPROPERTY

Returns:

  • (Boolean)


129
130
131
132
133
# File 'lib/whois/parsers/whois.srs.net.nz.rb', line 129

def invalid?
  cached_properties_fetch(:invalid?) do
    status == :invalid
  end
end

#response_throttled?Boolean

Checks whether the response has been throttled.

Examples:

query_status: 440 Request Denied

Returns:

  • (Boolean)


114
115
116
117
118
# 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?Boolean

NEWPROPERTY

Returns:

  • (Boolean)


122
123
124
125
126
# File 'lib/whois/parsers/whois.srs.net.nz.rb', line 122

def valid?
  cached_properties_fetch(:valid?) do
    !invalid?
  end
end