Class: PicturehouseUk::Internal::Website Private
- Inherits:
-
Object
- Object
- PicturehouseUk::Internal::Website
- Defined in:
- lib/picturehouse_uk/internal/website.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.
fetches pages from the picturehouse.co.uk website
Instance Method Summary collapse
-
#cinema(id) ⇒ String
private
get the cinema page with showings for passed id.
-
#contact_us(id) ⇒ String
private
get the cinema contact information page for passed id.
-
#home ⇒ String
private
get the home page.
-
#whatson(id) ⇒ String
private
get the cinema page containing all upcoming films and screenings.
Instance Method Details
#cinema(id) ⇒ 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.
get the cinema page with showings for passed id
10 11 12 |
# File 'lib/picturehouse_uk/internal/website.rb', line 10 def cinema(id) get("cinema/#{id}/") end |
#contact_us(id) ⇒ 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.
get the cinema contact information page for passed id
16 17 18 |
# File 'lib/picturehouse_uk/internal/website.rb', line 16 def contact_us(id) get("cinema/#{id}/Hires_Info/Contact_Us/") end |
#home ⇒ 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.
get the home page
22 23 24 |
# File 'lib/picturehouse_uk/internal/website.rb', line 22 def home get(nil) end |
#whatson(id) ⇒ 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.
get the cinema page containing all upcoming films and screenings
28 29 30 |
# File 'lib/picturehouse_uk/internal/website.rb', line 28 def whatson(id) get("whatson?cinema=#{id}") end |