weppos/whois-parser

Property 'domain' not implemented to RegistroBR parser

Closed this issue · 3 comments

The property 'domain' is not implemented on RegistroBR parser.

> record = Whois.whois("casarobertomarinho.org.br")
> parser = Whois::Parser.new(record)
> parser.domain
Whois::AttributeNotImplemented: Unable to find a parser for property `domain'

Correct, it's not.
https://github.com/weppos/whois-parser/blob/master/lib/whois/parsers/whois.registro.br.rb

Feel free to provide a PR. Actually, the domain property has little sense to me as it's basically whatever query you passed to the whois argument.

Any reason for needing it?

My commit fixes it:

anacarolinacastro@0304261

Answering your question, I work with one application that expects that this property exists, but is currently broken. The other parsers have this, so I thought that would be better that way.

Closed by #77