Sha256: 3fa7b1907a9333f1c1cde77f455197ab9c13690389b3d218329b20a5c226114f
Contents?: true
Size: 749 Bytes
Versions: 3
Compression:
Stored size: 749 Bytes
Contents
# encoding: UTF-8 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) Net::HTTP.get(URI("http://www.cineworld.co.uk/#{path}")) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cineworld_uk-2.0.2 | lib/cineworld_uk/internal/website.rb |
cineworld_uk-2.0.1 | lib/cineworld_uk/internal/website.rb |
cineworld_uk-2.0.0 | lib/cineworld_uk/internal/website.rb |