0.0
No commit activity in last 3 years
No release in over 3 years
Pull movie & cinema information from the Cineworld iOS API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3.0.0
 Project Readme

CineworldUk

A simple gem to parse the Cineworld UK cinema times (using their iOS API) and spit out useful formatted info.

Gem Version Code Climate Test Coverage Build Status Inline docs

Installation

Add this line to your application's Gemfile:

gem 'cineworld_uk'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cineworld_uk

Usage

The gem conforms to the API set down in the cinebase gem, andycroll/cinebase, which provides a lot of useful base vocabulary and repetitive code for this series of cinema focussed gems.

Performance titles are sanitized as much as possible, removing 'screening type' information and 'dimension' as well as standardising all the theatre/cultural event naming (NT Live, Royal Opera House etc).

Cinema

CineworldUk::Cinema.all
#=> [<CineworldUK::Cinema ...>, <CineworldUK::Cinema ...>, ...]

cinema = CineworldUk::Cinema.new(3)
#=> <CineworldUK::Cinema ...>

cinema.adr
#=> {
  street_address:   'Brighton Marina Village',
  extended_address: nil,
  locality:         'Brighton',
  region:           nil,
  postal_code:      'BN2 5UF',
  country:          'United Kingdom'
}

cinema.brand
#=> 'Cineworld'

cinema.full_name
#=> 'Cineworld Brighton'

cinema.id
#=> '3'

cinema.postal_code
#=> 'BN2 5UF'

Performances

CineworldUk::Performance.at(3)
#=> [<CineworldUK::Performance ...>, <CineworldUK::Performance ...>, ...]

performance = CineworldUk::Performance.at(3).first
#=> <CineworldUK::Performance ...>

performance.film_name
#=> 'Star Wars: The Force Awakens'

performance.dimension
#=> '2d'

performance.variant
#=> ['imax', 'kids']

performance.starting_at
#=> 2016-02-04 13:00:20 UTC

performance.showing_on
#=> #<Date: 2016-02-04 ((2457423j,0s,0n),+0s,2299161j)>

performance.booking_url
#=> "http://www.cineworld.co.uk/booking?performance=..."

performance.cinema_name
#=> 'Brighton'

performance.cinema_id
#=> 3

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Note that contributors assign all rights to the owner, Andy Croll (github), of this gem.