GitXplorerGitXplorer
a

picturehouse_uk

public
2 stars
1 forks
1 issues

Commits

List of commits on branch master.
Unverified
c4a0778892a6f6393326befac1fe47865d4ff854

v4.0.0

aandycroll committed 9 years ago
Unverified
086330cd3bf7c94bc3bc079a37d17a9200392c5a

Remove pull review

aandycroll committed 9 years ago
Unverified
ab7eb2ecd81eb497c14cdb972ef1a1d5f4ab9990

Pull Review again

aandycroll committed 9 years ago
Unverified
f71ea98d00a989586336f9c087d634c1c758db64

Pull Review YAML

aandycroll committed 9 years ago
Unverified
906d0ac65621dac5f8b040a50d1b3ef08b29eff8

More real classes rather than structs

aandycroll committed 9 years ago
Unverified
f53cd28ce4c629d51c94ff5d0d59af7043e60e7e

Allow code climate connections for WebMock

aandycroll committed 9 years ago

README

The README file for this repository.

PicturehouseUk

A simple gem to parse the Picturehouse Cinemas UK website 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 'picturehouse_uk'

And then execute:

$ bundle

Or install it yourself as:

$ gem install picturehouse_uk

Usage

Cinema

PicturehouseUK::Cinema.all
#=> [
      <PicturehouseUK::Cinema brand="Picturehouse" name="Duke's at Komedia" slug="dukes-at-komedia" chain_id="Dukes_At_Komedia" url="...">,
      <PicturehouseUK::Cinema brand="Picturehouse" name="Duke of York's" slug="duke-of-yorks" chain_id="Duke_Of_Yorks" url="...">,
      ...
    ]

PicturehouseUK::Cinema.find('Duke_Of_Yorks')
#=> <PicturehouseUK::Cinema brand="Picturehouse" name="Duke_Of_Yorks" slug="duke-of-yorks" address="..." chain_id="Duke_Of_Yorks" url="...">

cinema.brand
#=> 'Picturehouse'

cinema.chain_id
#=> 'Duke_Of_Yorks'

cinema.url
#=> "http://www.picturehouses.co.uk/cinema/Duke_Of_Yorks/"

cinema.films
#=> [<PicturehouseUK::Film name="Iron Man 3">, <PicturehouseUK::Film name="Star Trek: Into Darkness">]

cinema.screenings
#=> [<PicturehouseUK::Screening film="About Time" when="2013-09-09 11:00 UTC" varient="3d">, <PicturehouseUK::Screening film="Iron Man 3" when="2013-09-09 13:50 UTC" varient="kids">, <PicturehouseUK::Screening ..>, <PicturehouseUK::Screening ...>]

Running Tests

To redownload the test URLs run

ruby test/fixture_updater.rb

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