-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
38 lines (28 loc) · 869 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FakerExtensionDa
================
Danish names and formats built on top of the Faker gem.
Currently with
* Common Danish first and last names
* Danish Social security numbers (called CPR-nummer)
* Danish zipcodes and city names
* Danish phone numbers
Installation
============
sudo gem install faker
./script/plugin install
Example
=======
User.populate 100 do |person|
person.navn = Faker::Name.da_name
person.cpr = Faker::Ssn.da_ssn
person.homephone = Faker::PhoneNumber.da_phone_number
person.cellphone = Faker::PhoneNumber.da_cellphone_number
zipandcity = Faker::Address.da_zip_and_city
person.zipcode = zipandcity[0]
person.city = zipandcity[1]
end
TODO
====
Feel free to add further support for
* Danish addresses
Copyright (c) 2008 [Jesper Rønn-Jensen], released under the MIT license