Class Faker::Code
In: lib/faker/code.rb
Parent: Base

Methods

asin   ean   imei   isbn   npi   nric   rut  

Constants

RBI = %w(01 10 30 33 35 44 45 49 50 51 52 53 54 86 91 98 99).freeze   Reporting body identifier
EAN_CHECK_DIGIT8 = [3, 1, 3, 1, 3, 1, 3]
EAN_CHECK_DIGIT13 = [1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3]

Public Class methods

Retrieves a real Amazon ASIN code list taken from archive.org/details/asin_listing

By default generates 13 sign ean code in format 1234567890123 You can pass 8 to generate ean8 code

Generate GSM modem, device or mobile phone 15 digit IMEI number.

By default generates 10 sign isbn code in format 123456789-X You can pass 13 to generate new 13 sign code

Generates a 10 digit NPI (National Provider Identifier issued to health care providers in the United States)

By default generates a Singaporean NRIC ID for someone who is born between the age of 18 and 65.

[Validate]