dni_faker

A simple faker to generate DNI or NIE numbers with letter


License
MIT
Install
gem install dni_faker -v 0.3

Documentation

DNI Faker

This is a simple gem to generate fake spanish DNI or NIE random numbers with valid letters. It's based in the well-known gem Faker.

Faker::DNI


Faker::DNI.dni #=> "11966530K"

Faker::DNI.nie #=> "X7055652B"