Module: Vinegar::Client::Movie
- Included in:
- Vinegar::Client
- Defined in:
- lib/vinegar/client/movie.rb
Overview
Movies Search
Instance Method Summary collapse
-
#movie(movie_id, options = {}) ⇒ Hashie::Mash
Detailed information on a specific movie specified by Id.
-
#movies_search(query, per_page = "", page = "", options = {}) ⇒ Hashie::Mash
Returns the response from querying the movies search endpoint.
Instance Method Details
#movie(movie_id, options = {}) ⇒ Hashie::Mash
Detailed information on a specific movie specified by Id. You can use the movies search endpoint or peruse the lists of movies/dvds to get the urls to movies.
50 51 52 |
# File 'lib/vinegar/client/movie.rb', line 50 def movie(movie_id, = {}) get("movies/#{movie_id}.json", ) end |
#movies_search(query, per_page = "", page = "", options = {}) ⇒ Hashie::Mash
Returns the response from querying the movies search endpoint
28 29 30 31 32 33 34 35 |
# File 'lib/vinegar/client/movie.rb', line 28 def movies_search(query, per_page = "", page = "", = {}) .merge!( :q => query, :page_limit => per_page, :page => page ) get("movies.json", ) end |