Class: OdeonUk::Internal::ApiResponse Private

Inherits:
Object
  • Object
show all
Defined in:
lib/odeon_uk/internal/api_response.rb

Overview

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.

Utility class to make calls to the odeon website

Constant Summary collapse

VERSION =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

iOS app API version

'2.1'.freeze

Instance Method Summary collapse

Instance Method Details

#all_cinemasHash

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.

cinemas information

Returns:

  • (Hash)

    decoded response of api containing cinema details


15
16
17
# File 'lib/odeon_uk/internal/api_response.rb', line 15

def all_cinemas
  parse(all_cinemas_raw)
end

#app_initHash

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.

application initialize

Returns:

  • (Hash)

    decoded response of api, mostly films


21
22
23
# File 'lib/odeon_uk/internal/api_response.rb', line 21

def app_init
  parse(app_init_raw)
end

#film_times(cinema_id, film_id) ⇒ Hash

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.

showings for a film at a cinema

Returns:

  • (Hash)

    decoded response of api, day split times


27
28
29
# File 'lib/odeon_uk/internal/api_response.rb', line 27

def film_times(cinema_id, film_id)
  parse(film_times_raw(cinema_id, film_id))
end