Class: OdeonUk::Internal::ScreeningNodeParser Private
- Inherits:
-
Object
- Object
- OdeonUk::Internal::ScreeningNodeParser
- 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 a single screening
Constant Summary collapse
- TIME_REGEX =
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.
regex for time format
%r(\d+/\d+/\d+ \d{2}\:\d{2})- DBOX_REGEX =
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.
regex for D-Box screenings
/D-Box/
Instance Method Summary collapse
-
#initialize(node) ⇒ ScreeningNodeParser
constructor
private
A new instance of ScreeningNodeParser.
-
#to_hash ⇒ Hash
private
hashes of screening attributes.
Constructor Details
#initialize(node) ⇒ ScreeningNodeParser
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 ScreeningNodeParser.
110 111 112 |
# File 'lib/odeon_uk/internal/film_with_screenings_parser.rb', line 110 def initialize(node) @node = node end |
Instance Method Details
#to_hash ⇒ 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.
hashes of screening attributes
116 117 118 119 120 121 122 |
# File 'lib/odeon_uk/internal/film_with_screenings_parser.rb', line 116 def to_hash { booking_url: booking_url, time: utc_time, variant: variant } end |