# OdeonUk A simple gem to parse the [Odeon UK website](http://odeon.co.uk) and spit out useful formatted info. [![Gem Version](https://badge.fury.io/rb/odeon_uk.png)](http://badge.fury.io/rb/odeon_uk) [![Code Climate](https://codeclimate.com/github/andycroll/odeon_uk.png)](https://codeclimate.com/github/andycroll/odeon_uk) [![Build Status](https://travis-ci.org/andycroll/odeon_uk.png?branch=master)](https://travis-ci.org/andycroll/odeon_uk) [![Inline docs](http://inch-ci.org/github/andycroll/odeon_uk.png)](http://inch-ci.org/github/andycroll/odeon_uk) ## Installation Add this line to your application's Gemfile: gem 'odeon_uk' And then execute: $ bundle Or install it yourself as: $ gem install odeon_uk ## Usage ### Cinema ``` ruby OdeonUk::Cinema.all #=> [, #=> , ...] OdeonUk::Cinema.find_by_id('71') #=> OdeonUk::Cinema.find_by_id(71) #=> cinema = OdeonUk::Cinema.find_by_slug('odeon-brighton') #=> cinema.brand #=> 'Odeon' cinema.chain_id #=> '71' cinema.url #=> "http://www.odeon.co.uk/cinemas/brighton/71/" cinema.films #=> [, ] cinema.screenings #=> [, , , ] cinema.screenings_of 'Iron Man 3' #=> [, ] cinema.screenings_of #=> [, ] ``` ### Film ``` ruby OdeonUk::Film.all #=> [, , , ] ``` ## 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