Module: Fandango
- Defined in:
- lib/fandango.rb,
lib/fandango/api.rb,
lib/fandango/movie.rb,
lib/fandango/theater.rb,
lib/fandango/version.rb,
lib/fandango/showtime.rb,
lib/fandango/api/movies_near.rb,
lib/fandango/api/theater_showtimes.rb
Defined Under Namespace
Modules: API, Movie, MoviesNear, Showtime, Theater, TheaterShowtimes
Classes: BadResponse
Constant Summary
collapse
- VERSION =
"2.0.0"
Class Method Summary
collapse
Class Method Details
.movies_near(postal_code) ⇒ Object
16
17
18
|
# File 'lib/fandango.rb', line 16
def movies_near(postal_code)
MoviesNear.(postal_code)
end
|
.theater_showtimes(showtimes_link_or_options) ⇒ Object
20
21
22
23
24
25
26
|
# File 'lib/fandango.rb', line 20
def theater_showtimes(showtimes_link_or_options)
if showtimes_link_or_options.is_a?(Hash)
TheaterShowtimes.by_id_and_date(showtimes_link_or_options)
else
TheaterShowtimes.(showtimes_link_or_options)
end
end
|