Skip to content
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

Support for PubDate #2

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

kurtedelbrock
Copy link

Hello:

Thanks so much for creating this gem. I'm really enjoying it so far.

I added support for a pubdate attribute in the response object. Now, you can do something like the following to find out when the forecast was last updated:

puts YahooWeather::Client.new.lookup_location("48125").pubdate.strftime('%H:%m')

I also wrote a test for the new attribute, and fixed a bug in the gemspec that stopped the files in lib/yahoo-weather/** from being loaded when requested with require.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants