Make Twitter::Trendline embody trends collection
commit3a138d24c244a94a827cc673f0a49848dcf4bc34
authorSusan Potter <me@susanpotter.net>
Fri, 17 Jun 2011 20:43:45 +0000 (17 15:43 -0500)
committerSusan Potter <me@susanpotter.net>
Fri, 17 Jun 2011 20:43:45 +0000 (17 15:43 -0500)
tree54263decb4fad295160219393108d06c6f849052
parent406ffaea28dccfdf38c8e7a975c572261747ef3b
Make Twitter::Trendline embody trends collection

This has been accomplished in a couple of ways:
* Twitter::Trendline now conforms to Enumerable interface, which means
it can be iterated over via each among other things
* Twitter::Trendline now conforms to Comparable interface, which means
it is "sortable" among other things
* Twitter::Trendline has a definition of the [] operator for convenient
access to trends by index
lib/twitter/client.rb
lib/twitter/client/trends.rb [new file with mode: 0644]
lib/twitter/model.rb
spec/twitter/client/trends_spec.rb [new file with mode: 0644]
spec/twitter/model_spec.rb