Class: PicturehouseUk::Performance
- Inherits:
-
Cinebase::Performance
- Object
- Cinebase::Performance
- PicturehouseUk::Performance
- Defined in:
- lib/picturehouse_uk/performance.rb
Overview
A single screening of a film on the Picturehouse 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<PicturehouseUk::Screening>
Screenings at a single cinema.
Instance Method Summary collapse
- #initialize(options) ⇒ Object 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
|
# File 'lib/picturehouse_uk/performance.rb', line 15
|
Instance Attribute Details
#booking_url ⇒ String (readonly)
Returns the booking URL on the cinema website.
|
# File 'lib/picturehouse_uk/performance.rb', line 4
|
#cinema_id ⇒ String (readonly)
Returns the cinema id.
|
# File 'lib/picturehouse_uk/performance.rb', line 4
|
#cinema_name ⇒ String (readonly)
Returns the cinema name.
|
# File 'lib/picturehouse_uk/performance.rb', line 4
|
#dimension ⇒ String (readonly)
Returns 2d or 3d.
|
# File 'lib/picturehouse_uk/performance.rb', line 4
|
#film_name ⇒ String (readonly)
Returns the film name.
|
# File 'lib/picturehouse_uk/performance.rb', line 4
|
Class Method Details
.at(cinema_id) ⇒ Array<PicturehouseUk::Screening>
Screenings at a single cinema
27 28 29 30 31 |
# File 'lib/picturehouse_uk/performance.rb', line 27 def self.at(cinema_id) screenings(cinema_id).map do |attributes| new cinema_hash(cinema_id).merge(attributes) end.uniq end |
Instance Method Details
#showing_on ⇒ Date
The date of the screening
|
# File 'lib/picturehouse_uk/performance.rb', line 33
|
#starting_at ⇒ Time
UTC time of the screening
|
# File 'lib/picturehouse_uk/performance.rb', line 37
|
#variant ⇒ Array[String]
The kinds of screening (IMAX, kids, baby, senior)
|
# File 'lib/picturehouse_uk/performance.rb', line 41
|