Class: CineworldUk::Internal::WhatsonParser Private
- Inherits:
-
Object
- Object
- CineworldUk::Internal::WhatsonParser
- Defined in:
- lib/cineworld_uk/internal/whatson_parser.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 chunk of HTML to derive movie showing data
Constant Summary collapse
- FILM_CSS =
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.
css selector for film html chunks
'#filter-reload > .span9 > .film'
Instance Method Summary collapse
-
#films_with_screenings ⇒ Array<String>
private
break up the whats on page into individual chunks for each film.
-
#initialize(cinema_id) ⇒ WhatsonParser
constructor
private
A new instance of WhatsonParser.
Constructor Details
#initialize(cinema_id) ⇒ WhatsonParser
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.
Returns a new instance of WhatsonParser.
11 12 13 |
# File 'lib/cineworld_uk/internal/whatson_parser.rb', line 11 def initialize(cinema_id) @cinema_id = cinema_id end |
Instance Method Details
#films_with_screenings ⇒ Array<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.
break up the whats on page into individual chunks for each film
17 18 19 |
# File 'lib/cineworld_uk/internal/whatson_parser.rb', line 17 def films_with_screenings films_html end |