require 'open-uri' require 'openssl' module PicturehouseUk # @api private module Internal # fetches pages from the picturehouse.co.uk website class Website # get the cinema page with showings for passed id # @return [String] def cinema(id) get("cinema/#{id}") end # get the cinema contact information page for passed id # @return [String] def info(id) get("cinema/info/#{id}") end # get the home page # @return [String] def home get(nil) end private def get(path) open("https://www.picturehouses.com/#{path}").read end end end end