-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc examples not working #6
Comments
Hi, |
Ok, thanks for your quick response. Could you provide just a brief working example of checking a domain availability. Regards M |
I've pushed up a quick set of examples in the README file
if you've only got one name you want to check then you can use
as you don't have to pass the name to the |
Thank you very much! |
@geoffgarside sorry to bother you again, but your example is just partially working for me.. The check is working, but the resp.available? isn't. My code require "epp-client"
client = EPP::Client.new('user', 'pass', 'host', { :port => 1234} )
client.hello
resp = client.check EPP::Domain::Check.new('example.com', 'example.org')
puts resp.class
resp.available?('example.com') My output
It's looks to me, like the client.check response is of type EPP::Response instead of EPP::Domain::CheckResponse, am I doing something really stupid or missing something? FTR, gem epp-client installed is version 1.0.0 Regards M |
Damn, I've updated the README. I'd forgotten that you need to pass the EPP::Response to something like EPP::Domain::CheckResponse.new. It makes me think that it might be worth adding another method to the likes of EPP::Domain::Check where it can specify the response class to use. |
I've just see how you guys do it on the nominet-epp., I will try to backport the logic into the epp-client and send a pull request. I'll let you know if I need some help with the test cases. Thanks for all your help Sir! Regards M |
Hello
Im trying to use the examples in the doc and they are not working for me, could you check and let me know if i'm doing something wrong or the docs are outdated/wrong?
If trying either domain:check string payload or domain:check XML::Node payload examples i get the following error.
domain:check string payload sample
domain:check XML::Node payload sample
If I tried with the domain:check block I get a different error this time..
domain:check XML::Node payload sample
I'm using ruby 1.9.3 and gem version 1.0
Regards
M
The text was updated successfully, but these errors were encountered: