Module: Vinegar::Client::Similar

Included in:
Vinegar::Client
Defined in:
lib/vinegar/client/movie/similar.rb

Overview

Similar

Instance Method Summary collapse

Instance Method Details

#similar_movies(movie_id, limit = 5, options = {}) ⇒ Hashie::Mash

Shows similar movies for a movie.

Examples:

Get the similar movies for a movie

@client.similar_movies(12345)

Parameters:

  • movie_id (Integer)

    The id of the movie from Rotten Tomatoes

  • limit (Integer) (defaults to: 5)

    Limit the number of similar movies to show

Returns:

  • (Hashie::Mash)

    Similar movies response

See Also:

Author:

  • Jason Truluck



21
22
23
24
25
26
# File 'lib/vinegar/client/movie/similar.rb', line 21

def similar_movies(movie_id, limit = 5, options = {})
  options.merge!(
    :limit => limit
  )
  get("movies/#{movie_id}/similar.json", options)
end