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.com website
Instance Method Summary collapse
-
#cinema(id) ⇒ String
private
get the cinema page with showings for passed id.
-
#home ⇒ String
private
get the home page.
-
#info(id) ⇒ String
private
get the cinema contact information page for passed id.
-
#whats_on(id) ⇒ String
private
get the cinema screenings page for passed id.
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
11 12 13 |
# File 'lib/picturehouse_uk/internal/website.rb', line 11 def cinema(id) get("cinema/#{id}") 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
33 34 35 |
# File 'lib/picturehouse_uk/internal/website.rb', line 33 def home get(nil) end |
#info(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
25 26 27 28 29 |
# File 'lib/picturehouse_uk/internal/website.rb', line 25 def info(id) get("cinema/info/#{id}") rescue OpenURI::HTTPError '' end |
#whats_on(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 screenings page for passed id
17 18 19 20 21 |
# File 'lib/picturehouse_uk/internal/website.rb', line 17 def whats_on(id) get("cinema/#{id}/Whats_On") rescue OpenURI::HTTPError '' end |