lib/picturehouse_uk/internal/website.rb in picturehouse_uk-3.0.13 vs lib/picturehouse_uk/internal/website.rb in picturehouse_uk-3.0.14
- old
+ new
@@ -10,9 +10,17 @@
# @return [String]
def cinema(id)
get("cinema/#{id}")
end
+ # get the cinema screenings page for passed id
+ # @return [String]
+ def whats_on(id)
+ get("cinema/#{id}/Whats_On")
+ rescue OpenURI::HTTPError
+ ''
+ end
+
# get the cinema contact information page for passed id
# @return [String]
def info(id)
get("cinema/info/#{id}")
rescue OpenURI::HTTPError