a (very) small library for working with Standard Address Numbers
Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
CHANGELOG
Gemfile
MIT-LICENSE
README.markdown
Rakefile
san.gemspec

README.markdown

A small class for generating and validating Standard Address Numbers (SAN), a unique global identifier used in the book and publishing industries.

Installation

gem install san

Usage

SAN.new("9013725").valid?
=> true

SAN.valid?("9013725")
=> true

SAN.valid?("9013726")
=> false

SAN.complete("901372")
=> "9013725"

Further Reading