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

TmdbList addition #8

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

TmdbList addition #8

wants to merge 33 commits into from

Conversation

KellyMahan
Copy link

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

@Irio
Copy link
Owner

Irio commented Dec 6, 2012

Sorry for the delay, @KellyMahan, I was fixing the test suite inside TravisCI before read and test your pull request.

Great addition in the gem. Could you document TmdbList methods in README file?

@KellyMahan
Copy link
Author

Sorry for all the commits. Were will be using this gem in production soon and I've been adding to it as needed.

@Irio
Copy link
Owner

Irio commented Dec 9, 2012

@KellyMahan Can you verify your last commits? It seems your last commit introduced a conflict, so I can't merge it.

You can also see Travis CI build history.

Conflicts:
	test/unit/test_direct_require.rb
…he way I expected it. This creates the proper url for tmdb
Tmdb.base_api_url can now be set so apiary private proxy logging can be used
options = {
page: 1,
start_date: Time.now.strftime("%Y-%m-%d"),
end_date: (Time.now+60*60*24).strftime("%Y-%m-%d"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use Time.now + 86400 and add a comment to show why this number?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@vgkids
Copy link

vgkids commented Oct 23, 2013

It looks like TmdbList never made it into Master? Any chance that could get merged?

@Irio
Copy link
Owner

Irio commented Nov 1, 2013

Sorry, @vgkids. I can't merge it while the branch have conflicts.

@KellyMahan do you still want to solve them?

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