Sha256: b263ed27415c59a461596c611edcc61de08c9acc17f4b71aedf37bc4508b1c06
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 Bytes
Contents
require 'open-uri' 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("http://www.picturehouses.com/#{path}").read end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picturehouse_uk-3.0.1 | lib/picturehouse_uk/internal/website.rb |
picturehouse_uk-3.0.0 | lib/picturehouse_uk/internal/website.rb |