Class: CineworldUk::Internal::ApiResponse Private

Inherits:
Object
  • Object
show all
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

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

Parameters:

  • id (Fixnum)

    the id of the cinema

Returns:

  • (String)

    JSON encoded



24
25
26
# File 'lib/cineworld_uk/internal/api_response.rb', line 24

def cinema_detail(id)
  response('cinema/detail', cinema: id)
end

#cinema_listString

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

Returns:

  • (String)

    JSON encoded



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

Parameters:

  • id (Fixnum)

    the id of the cinema

Returns:

  • (String)

    JSON encoded



17
18
19
# File 'lib/cineworld_uk/internal/api_response.rb', line 17

def dates(id)
  response('dates', cinema: id)
end

#film_listString

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

Returns:

  • (String)

    JSON encoded



30
31
32
# File 'lib/cineworld_uk/internal/api_response.rb', line 30

def film_list
  response('film/list', full: true)
end

#film_list_comingsoonString

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

Returns:

  • (String)

    JSON encoded



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

Parameters:

  • cinema_id (Fixnum)

    the id of the cinema

  • date (Date)

    a single date in the future

Returns:

  • (String)

    JSON encoded



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