Class: OdeonUk::Internal::DimensionNodeParser Private
- Inherits:
-
Object
- Object
- OdeonUk::Internal::DimensionNodeParser
- Defined in:
- lib/odeon_uk/internal/film_with_screenings_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 chunk of screenings for a particular screening dimension
Constant Summary collapse
- SCREENING_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 a single screening inside a ‘group of showtimes’ HTML
'.show'- TECH_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 showing technology for a ‘group of showtimes’ HTML
'.tech a'
Instance Method Summary collapse
-
#initialize(node) ⇒ DimensionNodeParser
constructor
private
A new instance of DimensionNodeParser.
-
#to_a ⇒ Array<Hash>
private
array containing hashes of screening attributes for dimension.
Constructor Details
#initialize(node) ⇒ DimensionNodeParser
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 DimensionNodeParser.
56 57 58 |
# File 'lib/odeon_uk/internal/film_with_screenings_parser.rb', line 56 def initialize(node) @node = node end |
Instance Method Details
#to_a ⇒ Array<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.
array containing hashes of screening attributes for dimension
62 63 64 65 66 67 68 69 |
# File 'lib/odeon_uk/internal/film_with_screenings_parser.rb', line 62 def to_a screening_hashes.map do |hash| hash.merge( dimension: dimension, variant: add_imax(hash[:variant]) ) end end |