Module: Vinegar::Client::Clip

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

Overview

Clip

Instance Method Summary collapse

Instance Method Details

#clips_for_movie(movie_id, options = {}) ⇒ Hashie::Mash

Related movie clips and trailers for a movie

Examples:

Get the similar movies for a movie

@client.clips_for_movie(12345)

Parameters:

  • movie_id (Integer)

    The id of the movie from Rotten Tomatoes

Returns:

  • (Hashie::Mash)

    Clips movies response

See Also:

Author:

  • Jason Truluck



20
21
22
# File 'lib/vinegar/client/movie/clip.rb', line 20

def clips_for_movie(movie_id, options = {})
  get("movies/#{movie_id}/clips.json", options)
end