Module: Allocine
- Defined in:
- lib/allocine.rb,
lib/allocine/web.rb,
lib/allocine/show.rb,
lib/allocine/movie.rb,
lib/allocine/sinatra.rb,
lib/allocine/web/curb.rb,
lib/allocine/web/open_uri.rb
Defined Under Namespace
Modules: WebCurb, WebOpenUri Classes: Movie, Show, SinatraApp, Web
Constant Summary collapse
- MOVIE_SEARCH_URL =
"http://www.allocine.fr/recherche/1/?q=%s"- MOVIE_DETAIL_URL =
"http://www.allocine.fr/film/fichefilm_gen_cfilm=%s.html"- MOVIE_PRESS_URL =
"http://www.allocine.fr/film/revuedepresse_gen_cfilm=%s.html"- SHOW_SEARCH_URL =
"http://www.allocine.fr/recherche/6/?q=%s"- SHOW_DETAIL_URL =
"http://www.allocine.fr/series/ficheserie_gen_cserie=%s.html"
Class Method Summary collapse
-
.find_movie(search) ⇒ Object
Make a search on movies.
-
.find_show(search) ⇒ Object
Make a search on shows.
-
.lucky_movie(search) ⇒ Object
Returns the first movie.
-
.lucky_show(search) ⇒ Object
Returns the first show.
Class Method Details
.find_movie(search) ⇒ Object
Make a search on movies
29 30 31 |
# File 'lib/allocine.rb', line 29 def self.find_movie(search) Allocine::Movie.find(search) end |
.find_show(search) ⇒ Object
Make a search on shows
34 35 36 |
# File 'lib/allocine.rb', line 34 def self.find_show(search) Allocine::Show.find(search) end |
.lucky_movie(search) ⇒ Object
Returns the first movie
39 40 41 |
# File 'lib/allocine.rb', line 39 def self.lucky_movie(search) Allocine::Movie.lucky_find(search) end |
.lucky_show(search) ⇒ Object
Returns the first show
44 45 46 |
# File 'lib/allocine.rb', line 44 def self.lucky_show(search) Allocine::Show.lucky_find(search) end |