parts | [R] | |
server | [R] |
Returns whether this answer changed compared to other.
Comparing the Answer contents is not always as trivial as it seems. Whois servers sometimes inject dynamic method into the whois answer such as the timestamp the request was generated. This causes two answers to be different even if they actually should be considered equal because the registry data didn‘t change.
This method should provide a bulletproof way to detect whether this answer changed if compared with other.
other: | The Whois::Answer to compare. |
Boolean
This method joins and returns all answer parts into a single string and separates each response with a newline character.
answer = Whois::Answer.new([Whois::Answer::Part.new("First answer.")]) answer.content # => "First answer." answer = Whois::Answer.new([Whois::Answer::Part.new("First answer."), Whois::Answer::Part.new("Second answer.")]) answer.content # => "First answer.\nSecond answer."
String: | The content of this answer. |
Returns a Hash containing all supported properties for this answer along with corresponding values.
Hash