Sha256: ea9b3e21cbdb2f72a566ce4771264b4ff0675419b3413d33817ca8718a87d429
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
# Faker::DrivingLicence ```ruby # Generate a licence number in GB format, as issued in England, Scotland and Wales # The DVSA does not publish their checksum algorithm, so the last 3 characters # are random # Keyword arguments: last_name, initials, date_of_birth, gender Faker::DrivingLicence.british_driving_licence #=> "MCDER712081VF7EK" Faker::DrivingLicence.british_driving_licence(last_name: "O'Carroll", initials: "J", gender: :female, date_of_birth: Date.parse("1986-10-24")) #=> "OCARR815246J91HT" # Generate a Northern Irish licence number Faker::DrivingLicence.northern_irish_driving_licence #=> "70702548" # Generate a UK driving licence number in either GB or NI format, at a rate # consistent with their relative populations # Keyword arguments: last_name, initials, date_of_birth, gender Faker::DrivingLicence.uk_driving_licence #=> "OCARR815246J91HT" Faker::DrivingLicence.uk_driving_licence #=> "70702548" # Generate a USA driving licence number # Default state for driving licence is California # Keyword arguments: state Faker::DrivingLicence.usa_driving_licence #=> "E124590" # USA driving licence for Massachusetts state Faker::DrivingLicence.usa_driving_licence('new mexico') #=> "85793820" Faker::DrivingLicence.usa_driving_licence('New Mexico') #=> "57382918" Faker::DrivingLicence.usa_driving_licence('NEW MEXICO') #=> "38593028"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logstash-output-scalyr-0.1.7 | vendor/bundle/jruby/2.5.0/bundler/gems/faker-e1bd4a5a5777/doc/default/driving_licence.md |