Skip to content

personnummer/ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

personnummer Build Status

Validate personal identity numbers.

Installation

Add this to your Gemfile

gem 'personnummer', :git => 'https://github.com/personnummer/ruby.git'

Then run bundle install

Example

require 'personnummer'

puts Personnummer.valid?("8507099805")
# => True

See test/test_personnummer.rb for more examples.

License

MIT