Class: CineworldUk::Internal::Parser::Api::FilmLookup Private
- Inherits:
-
Object
- Object
- CineworldUk::Internal::Parser::Api::FilmLookup
- 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
-
#to_hash ⇒ Hash{Integer => CineworldUk::Internal::Parser::Api::Film}
private
contains all films & upcoming films keyed by id.
Instance Method Details
#to_hash ⇒ Hash{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
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 |