Class: CineworldUk::Internal::ApiResponse Private
- Inherits:
-
Object
- Object
- CineworldUk::Internal::ApiResponse
- Defined in:
- lib/cineworld_uk/internal/api_response.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#cinema_detail(id) ⇒ String
private
Detail about a specific cinema.
-
#cinema_list ⇒ String
private
Basic cinema list of ids/names.
-
#dates(id) ⇒ String
private
List of dates on which there are screening for this cinema id.
-
#film_list ⇒ String
private
List of all currently showing films.
-
#film_list_comingsoon ⇒ String
private
List of all upcoming films.
-
#performances(cinema_id, date) ⇒ String
private
All screenings from a specific cinema on a specific date.
Instance Method Details
#cinema_detail(id) ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Detail about a specific cinema
24 25 26 |
# File 'lib/cineworld_uk/internal/api_response.rb', line 24 def cinema_detail(id) response('cinema/detail', cinema: id) end |
#cinema_list ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Basic cinema list of ids/names
10 11 12 |
# File 'lib/cineworld_uk/internal/api_response.rb', line 10 def cinema_list response('cinema/list', full: true) end |
#dates(id) ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
List of dates on which there are screening for this cinema id
17 18 19 |
# File 'lib/cineworld_uk/internal/api_response.rb', line 17 def dates(id) response('dates', cinema: id) end |
#film_list ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
List of all currently showing films
30 31 32 |
# File 'lib/cineworld_uk/internal/api_response.rb', line 30 def film_list response('film/list', full: true) end |
#film_list_comingsoon ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
List of all upcoming films
36 37 38 |
# File 'lib/cineworld_uk/internal/api_response.rb', line 36 def film_list_comingsoon response('film/list/comingsoon', full: true) end |
#performances(cinema_id, date) ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
All screenings from a specific cinema on a specific date
44 45 46 47 |
# File 'lib/cineworld_uk/internal/api_response.rb', line 44 def performances(cinema_id, date) response('performances', cinema: cinema_id, date: date.strftime('%Y%m%d')) end |