sferik/twitter — pull request #389 by iirving (2013-04-23 16:46:56+00:00)
Title: Trends as a object 2

as pre sferik's comment (https://github.com/sferik/twitter/pull/388#issuecomment-16748715) here is a go at having trends return an object with attributes.
example Return the top 10 trending topics for San Francisco
# t = Twitter.trends(2487956)
# t.trends.first.name => "#sevenwordsaftersex"
# t.as_of => "2010-10-25T14:49:50Z"
# t.created_at => "2010-10-25T14:41:13Z"
# t.locations_name => "San Francisco"
# t.locations_woeid => "2487956"