Class: PicturehouseUk::Internal::Website Private

Inherits:
Object
  • Object
show all
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

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

Returns:

  • (String)


11
12
13
# File 'lib/picturehouse_uk/internal/website.rb', line 11

def cinema(id)
  get("cinema/#{id}")
end

#homeString

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

Returns:

  • (String)


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

Returns:

  • (String)


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

Returns:

  • (String)


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