Irio/ruby-tmdb — pull request #8 by KellyMahan (2012-12-04 19:42:36+00:00)
Title: TmdbList addition

Added new class TmdbList with 4 new methods to retrieve data from tmdb.

list = TmdbList.upcoming
list = TmdbList.now_playing
list = TmdbList.top_rated
list = TmdbList.popular

each method has an optional page and language arguments
list = TmdbList.popular(2,"EN")

a TmdbList instance has theses accessors

attr_accessor :page, :movie_ids, :total_pages, :total_results, :movies_data, :movies

list.movies_data is the original json data
list.movies is an array of TmdbList::Movie objects.

a TmdbList::Movie object has these accessors.
attr_accessor :backdrop_path, :id, :original_title, :release_date, :poster_path, :title, :vote_average, :vote_count