Class: CineworldUk::Internal::Parser::Api::FilmLookup Private

Inherits:
Object
  • Object
show all
Defined in:
lib/cineworld_uk/internal/parser/api/film_lookup.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.

Parses a string to derive address

Instance Method Summary collapse

Instance Method Details

#to_hashHash{Integer => CineworldUk::Internal::Parser::Api::Film}

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.

contains all films & upcoming films keyed by id

Returns:



10
11
12
13
14
15
# File 'lib/cineworld_uk/internal/parser/api/film_lookup.rb', line 10

def to_hash
  @to_hash ||= all_films.each_with_object({}) do |item, lookup|
    next if item['edi'].nil?
    lookup[item['edi']] = Film.new(item)
  end
end