Class: CineworldUk::Performance
- Inherits:
-
Cinebase::Performance
- Object
- Cinebase::Performance
- CineworldUk::Performance
- Defined in:
- lib/cineworld_uk/performance.rb
Overview
The object representing a single screening on the Cineworld UK website
Instance Attribute Summary collapse
-
#booking_url ⇒ String
readonly
The booking URL on the cinema website.
-
#cinema_id ⇒ String
readonly
The cinema id.
-
#cinema_name ⇒ String
readonly
The cinema name.
-
#dimension ⇒ String
readonly
2d or 3d.
-
#film_name ⇒ String
readonly
The film name.
Class Method Summary collapse
-
.at(cinema_id) ⇒ Array<CineworldUk::Screening>
All currently listed films showing at a cinema.
Instance Method Summary collapse
-
#initialize(options) ⇒ Object
constructor
Constructor.
-
#showing_on ⇒ Date
The date of the screening.
-
#starting_at ⇒ Time
UTC time of the screening.
-
#variant ⇒ Array[String]
The kinds of screening (IMAX, kids, baby, senior).
Constructor Details
#initialize(options) ⇒ Object
Constructor
|
# File 'lib/cineworld_uk/performance.rb', line 15
|
Instance Attribute Details
#booking_url ⇒ String (readonly)
Returns the booking URL on the cinema website.
|
# File 'lib/cineworld_uk/performance.rb', line 4
|
#cinema_id ⇒ String (readonly)
Returns the cinema id.
|
# File 'lib/cineworld_uk/performance.rb', line 4
|
#cinema_name ⇒ String (readonly)
Returns the cinema name.
|
# File 'lib/cineworld_uk/performance.rb', line 4
|
#dimension ⇒ String (readonly)
Returns 2d or 3d.
|
# File 'lib/cineworld_uk/performance.rb', line 4
|
#film_name ⇒ String (readonly)
Returns the film name.
|
# File 'lib/cineworld_uk/performance.rb', line 4
|
Class Method Details
.at(cinema_id) ⇒ Array<CineworldUk::Screening>
All currently listed films showing at a cinema
28 29 30 31 32 33 34 35 |
# File 'lib/cineworld_uk/performance.rb', line 28 def self.at(cinema_id) cinema_id = cinema_id.to_i dates(cinema_id).flat_map do |date| performances_on(cinema_id, date).flat_map do |p| new cinema_hash(cinema_id).merge(p) end end end |
Instance Method Details
#showing_on ⇒ Date
The date of the screening
|
# File 'lib/cineworld_uk/performance.rb', line 37
|
#starting_at ⇒ Time
UTC time of the screening
|
# File 'lib/cineworld_uk/performance.rb', line 41
|
#variant ⇒ Array[String]
The kinds of screening (IMAX, kids, baby, senior)
|
# File 'lib/cineworld_uk/performance.rb', line 45
|