Skip to content

Instantly share code, notes, and snippets.

@leandroo
Created August 10, 2010 03:04
Show Gist options
  • Save leandroo/516588 to your computer and use it in GitHub Desktop.
Save leandroo/516588 to your computer and use it in GitHub Desktop.
require 'yahoo_weatherman'
client = Weatherman::Client.new(:lang => 'pt-br')
response = client.lookup_by_woeid(455823)
puts response.location['city']
puts response.location['region']
puts response.location['country']
puts response.condition['code']
puts response.condition['temp']
puts response.condition['text']
puts response.condition['date']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment