We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems there's no way to know if there was no response:
(dev)> response = client.lookup_by_woeid 123123123123 => #<Weatherman::Response:0x007fee06bfd168 @document_root={"units"=>{"distance"=>"km", "pressure"=>"mb", "speed"=>"km/h", "temperature"=>"C"}}, @i18n=#<Weatherman::I18N:0x007fee06bfcb50 @language=nil>> (dev)> response.location NoMethodError: undefined method `size' for nil:NilClass from /usr/local/lib/ruby/gems/2.3.0/bundler/gems/yahoo_weatherman-cf110fe4f25f/lib/yahoo_weatherman/response.rb:172:in `attribute'
Please add a way to check that there was no response, currently the methods just throw an exception from yahoo_weatherman which I have to rescue from.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It seems there's no way to know if there was no response:
Please add a way to check that there was no response, currently the methods just throw an exception from yahoo_weatherman which I have to rescue from.
The text was updated successfully, but these errors were encountered: