Sha256: b0ea3cc4a1f4f74217d9195a7b541b1eedf0e9875d4028daba7325399e824341
Contents?: true
Size: 760 Bytes
Versions: 10
Compression:
Stored size: 760 Bytes
Contents
# encoding: UTF-8 require 'open-uri' module CineworldUk # Internal utility classes: Do not use # @api private module Internal # fetches pages from the cineworld.co.uk website class Website # get the cinema information page for passed id # @return [String] def cinema_information(id) get("cinemas/#{id}/information") end # get the cinemas page # @return [String] def cinemas get('cinemas') end # get the cinema page containing all upcoming films and screenings # @return [String] def whatson(id) get("whatson?cinema=#{id}") end private def get(path) open("http://www.cineworld.co.uk/#{path}").read end end end end
Version data entries
10 entries across 10 versions & 1 rubygems