parts | [R] | @return [Array<Whois::Record::Part>] The parts that compose this record. |
server | [R] | @return [Whois::Server] The server that originated this record. |
Initializes a new instance with given server and parts.
@param [Whois::Server] server @param [Array<Whois::Record::Part>] parts
Returns true if the object is the same object, or is a string and has the same content.
@param [Whois::Record] other The record to compare. @return [Boolean]
Shortcut for admin_contacts.first.
@return [Whois::Record::Contact]
If the property is supported and a contact exists.
@return [nil]
If the property is not supported or the contact doesn't exist.
@see Whois::Record#admin_contacts
Checks whether this {Whois::Record} is different than other.
Comparing the {Whois::Record} content is not as trivial as you may think. WHOIS servers can inject into the WHOIS response strings that changes at every request, such as the timestamp the request was generated or the number of requests left for your current IP.
These strings causes a simple equal comparison to fail even if the registry data is the same.
This method should provide a bulletproof way to detect whether this record changed compared with other.
@param [Whois::Record] other The other record instance to compare. @return [Boolean]
@see Whois::Record::Parser#changed?
Collects and returns all the contacts.
@return [Array<Whois::Record::Contact>]
Joins and returns all record parts into a single string and separates each response with a newline character.
@example Record with one part
record = Whois::Record.new([Whois::Record::Part.new(:body => "First record.")]) record.content # => "First record."
@example Record with multiple parts
record = Whois::Record.new([Whois::Record::Part.new(:body => "First record."), Whois::Record::Part.new(:body => "Second record.")]) record.content # => "First record.\nSecond record."
@return [String] The content of this record.
Lazy-loads and returns the parser proxy for current record.
@return [Whois::Record::Parser]
Returns a Hash containing all supported properties for this record along with corresponding values.
@return [{ Symbol => Object }]
Returns true if the property passed as symbol is supported by any available parser for this record.
@param [Symbol] property The name of the property to check. @return [Boolean]
@see Whois::Record::Parser#property_supported?
Shortcut for registrant_contacts.first.
@return [Whois::Record::Contact]
If the property is supported and a contact exists.
@return [nil]
If the property is not supported or the contact doesn't exist.
@see Whois::Record#registrant_contacts
Checks if this class respond to given method.
Overrides the default implementation to add support for {Parser::PROPERTIES} and {Parser::METHODS}.
@return [Boolean]
Checks whether this is an incomplete response.
@return [Boolean]
@see Whois::Record::Parser#response_incomplete?
Checks whether this is a throttle response.
@return [Boolean]
@see Whois::Record::Parser#response_throttled?
Checks whether this is an unavailable response.
@return [Boolean]
@see Whois::Record::Parser#response_unavailable?
Shortcut for technical_contacts.first.
@return [Whois::Record::Contact]
If the property is supported and a contact exists.
@return [nil]
If the property is not supported or the contact doesn't exist.
@see Whois::Record#technical_contacts
The opposite of {changed?}.
@param [Whois::Record] other The other record instance to compare. @return [Boolean]
@see Whois::Record::Parser#unchanged?