Sha256: 05aa968c011dac2ac0489132341d5839a57b1521c344ed30286ca045665adaa6

Contents?: true

Size: 1.08 KB

Versions: 10

Compression:

Stored size: 1.08 KB

Contents

= tmdb_party

Simple ruby wrapper to themoviedb.org (http://api.themoviedb.org/2.0/docs/) using HTTParty

= usage:
  sudo gem install jduff-tmdb_party
  require 'tmdb_party'

= example:

  @tmdb = TMDBParty::Base.new('key')
  results = @tmdb.search('transformers')

  results.length
    # => 5

  transformers = results.detect{|m| m.title == "Transformers"}

  transformers.popularity
    # => 31
  transformers.score
    # => 1.0
  transformers.imdb
    # => 'tt0418279'

  # some attributes don't come back with the search result, they are lazily loaded on demand
  transformers.homepage
    # => "http://www.transformersmovie.com/"
  transformers.trailer.url
    # => "http://www.youtube.com/watch?v=eduwcuq1Exg"

  transformers.categories.collect{|cat| cat.name}.include?("Adventure Film")
    # => true

= what is themoviedb.org?
It's a movie database, kind of like IMDB except it's more of a community wiki. They also have an api that they're cool with people using. More on the api here: http://api.themoviedb.org/2.0/docs/

== Copyright

Copyright (c) 2009 John Duff. See LICENSE for details.

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
jduff-tmdb_party-0.0.2 README.rdoc
jduff-tmdb_party-0.1.0 README.rdoc
jduff-tmdb_party-0.2.0 README.rdoc
jduff-tmdb_party-0.2.1 README.rdoc
maddox-tmdb_party-0.1.0 README.rdoc
maddox-tmdb_party-0.2.0 README.rdoc
maddox-tmdb_party-0.2.1 README.rdoc
maddox-tmdb_party-0.3.0 README.rdoc
tmdb_party-0.3.1 README.rdoc
tmdb_party-0.3.0 README.rdoc