Project

cinebase

0.0
No commit activity in last 3 years
No release in over 3 years
I maintain several gems for cinema times in the UK, this gem is the interface descriptor.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Cinebase

A basic interface for a series of cinema gems.

Installation

Add this line to the gem's gemspec:

gem.add_runtime_dependency 'cinebase'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cinebase

Usage

This gem is intended to act as a base for other cinema chain gems. Inherit the classes to get the correct method signatures.

module CinemaChainName
  class Cinema < Cinebase::Cinema
    def self.all(cinema_id)
      # parse webpages or apis to get cinemas
    end

    def brand
      # 'Brand Name'
    end

    # define address methods
  end
end

module CinemaChainName
  class Screening < Cinebase::Screening
    def self.at(cinema_id)
      # parse webpages or apis to get screenings for a cinema
    end
  end
end

module CinemaChainName
  module Internal
    class TitleSanitizer < Cinebase::TitleSanitizer
      private

      def remove
        # []
      end

      def replace
        # { core title regex => replacement text }
      end
    end
  end
end

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 a new Pull Request