Update ffaker.

This commit is contained in:
Rico Sta. Cruz 2012-03-29 22:39:57 +08:00
parent 346cafbc99
commit dff114cb07
1 changed files with 290 additions and 325 deletions

View File

@ -1,6 +1,8 @@
title: FFaker
---
## Faker::Address ## Faker::Address
``` ruby
Faker::Address.city #=> "Autumnside" Faker::Address.city #=> "Autumnside"
#=> "South Brielleberg" #=> "South Brielleberg"
#=> "West Alvera" #=> "West Alvera"
@ -16,11 +18,9 @@ Faker::Address.street_address #=> "98786 Neal Motorway"
Faker::Address.secondary_address #=> "Suite 560" Faker::Address.secondary_address #=> "Suite 560"
#=> "Apt. 332" #=> "Apt. 332"
#=> "Apt. 411" #=> "Apt. 411"
```
## Faker::Company ## Faker::Company
``` ruby
Faker::Company.name #=> "Pouros-Ondricka" Faker::Company.name #=> "Pouros-Ondricka"
#=> "Ward Group" #=> "Ward Group"
#=> "Walter-Romaguera" #=> "Walter-Romaguera"
@ -40,11 +40,9 @@ Faker::Company.bs #=> "extend one-to-one convergence"
Faker::Company.position #=> "General Corporate President" Faker::Company.position #=> "General Corporate President"
#=> "Executive Department Consultant" #=> "Executive Department Consultant"
#=> "Associate Director" #=> "Associate Director"
```
## Faker::Education ## Faker::Education
``` ruby
Faker::Education.school #=> "Larkwood Institution" Faker::Education.school #=> "Larkwood Institution"
#=> "Whiteshire School" #=> "Whiteshire School"
#=> "California International College" #=> "California International College"
@ -64,11 +62,9 @@ Faker::Education.major #=> "Financial Philosophy"
Faker::Education.school_name #=> "Larkfield" Faker::Education.school_name #=> "Larkfield"
#=> "Northshire" #=> "Northshire"
#=> "Lakepoint" #=> "Lakepoint"
```
## Faker::Geolocation ## Faker::Geolocation
``` ruby
Faker::Geolocation.lat #=> 40.89505 Faker::Geolocation.lat #=> 40.89505
#=> 41.77117 #=> 41.77117
#=> 41.022921 #=> 41.022921
@ -76,11 +72,9 @@ Faker::Geolocation.lat #=> 40.89505
Faker::Geolocation.lng #=> -115.120716573 Faker::Geolocation.lng #=> -115.120716573
#=> -118.427610513239 #=> -118.427610513239
#=> -72.204989 #=> -72.204989
```
## Faker::Internet ## Faker::Internet
``` ruby
Faker::Internet.email #=> "dayna@auer.name" Faker::Internet.email #=> "dayna@auer.name"
#=> "joy@nienowbradtke.info" #=> "joy@nienowbradtke.info"
#=> "bernhard@wyman.ca" #=> "bernhard@wyman.ca"
@ -108,19 +102,15 @@ Faker::Internet.domain_word #=> "purdykutch"
Faker::Internet.domain_suffix #=> "us" Faker::Internet.domain_suffix #=> "us"
#=> "info" #=> "info"
#=> "biz" #=> "biz"
```
## Faker::Job ## Faker::Job
``` ruby
Faker::Job.title #=> "Future Data Assistant" Faker::Job.title #=> "Future Data Assistant"
#=> "Product Division Technician" #=> "Product Division Technician"
#=> "Product Research Developer" #=> "Product Research Developer"
```
## Faker::Lorem ## Faker::Lorem
``` ruby
Faker::Lorem.word #=> "sint" Faker::Lorem.word #=> "sint"
#=> "sit" #=> "sit"
#=> "omnis" #=> "omnis"
@ -187,11 +177,9 @@ Faker::Lorem.paragraphs(3) #=> ["Iusto mollitia sequi nam perspicia
# r modi. Aut quia voluptas velit sint aperiam sed eveniet.", # r modi. Aut quia voluptas velit sint aperiam sed eveniet.",
# "Quo doloribus explicabo ut magnam quasi. Voluptatem debitis # "Quo doloribus explicabo ut magnam quasi. Voluptatem debitis
# quaerat aperiam. Accusantium quis voluptatem dolorem."] # quaerat aperiam. Accusantium quis voluptatem dolorem."]
```
## Faker::HipsterIpsum ## Faker::HipsterIpsum
``` ruby
Faker::HipsterIpsum.paragraph #=> "Wayfarers mustache thundercats pitchfork messenger bag high Faker::HipsterIpsum.paragraph #=> "Wayfarers mustache thundercats pitchfork messenger bag high
# life. Beard messenger bag wayfarers squid vinyl letterpress # life. Beard messenger bag wayfarers squid vinyl letterpress
# party iphone jean shorts. Lomo irony before they sold out e # party iphone jean shorts. Lomo irony before they sold out e
@ -204,11 +192,9 @@ Faker::HipsterIpsum.paragraph #=> "Wayfarers mustache thundercats pitc
# ee vinyl marfa locavore. Messenger bag master cleanse mlkshk # ee vinyl marfa locavore. Messenger bag master cleanse mlkshk
# vegan thundercats beard wes anderson brunch. Helvetica mess # vegan thundercats beard wes anderson brunch. Helvetica mess
# enger bag lo-fi four l..." # enger bag lo-fi four l..."
```
## Faker::HTMLIpsum ## Faker::HTMLIpsum
``` ruby
Faker::HTMLIpsum.body #=> "<h1>Exercitationem et</h1><table><thead><tr><th>Eligendi</t Faker::HTMLIpsum.body #=> "<h1>Exercitationem et</h1><table><thead><tr><th>Eligendi</t
# h><th>Vel</th><th>Sed</th><th>At</th></tr></thead><tbody><tr # h><th>Vel</th><th>Sed</th><th>At</th></tr></thead><tbody><tr
# ><..." # ><..."
@ -240,11 +226,9 @@ Faker::HTMLIpsum.fancy_string #=> "<a href=\"#distinctio\" title=\"Ten
# m est fugit libero repellendus vero. Modi pariatur sunt tene # m est fugit libero repellendus vero. Modi pariatur sunt tene
# tur soluta inventore ratione. Iste consequuntur quia omnis n # tur soluta inventore ratione. Iste consequuntur quia omnis n
# umquam excepturi quod ..." # umquam excepturi quod ..."
```
## Faker::Name ## Faker::Name
``` ruby
Faker::Name.name #=> "Trevion Herman V" Faker::Name.name #=> "Trevion Herman V"
#=> "Aracely Balistreri" #=> "Aracely Balistreri"
#=> "Daphnee Terry Sr." #=> "Daphnee Terry Sr."
@ -264,11 +248,9 @@ Faker::Name.prefix #=> "Dr."
Faker::Name.suffix #=> "I" Faker::Name.suffix #=> "I"
#=> "III" #=> "III"
#=> "DDS" #=> "DDS"
```
## Faker::PhoneNumber ## Faker::PhoneNumber
``` ruby
Faker::PhoneNumber.phone_number #=> "335-364-4549 x430" Faker::PhoneNumber.phone_number #=> "335-364-4549 x430"
#=> "040-278-4021 x753" #=> "040-278-4021 x753"
#=> "420.645.4382" #=> "420.645.4382"
@ -276,11 +258,9 @@ Faker::PhoneNumber.phone_number #=> "335-364-4549 x430"
Faker::PhoneNumber.short_phone_number #=> "473-412-3192" Faker::PhoneNumber.short_phone_number #=> "473-412-3192"
#=> "353-084-1297" #=> "353-084-1297"
#=> "080-546-2356" #=> "080-546-2356"
```
## Faker::Product ## Faker::Product
``` ruby
Faker::Product.brand #=> "Trouffeforge" Faker::Product.brand #=> "Trouffeforge"
#=> "VIG" #=> "VIG"
#=> "NDZ" #=> "NDZ"
@ -296,11 +276,9 @@ Faker::Product.product #=> "Amnix Air HD Tuner"
Faker::Product.model #=> "I-422" Faker::Product.model #=> "I-422"
#=> "J89" #=> "J89"
#=> "L6" #=> "L6"
```
## Faker::NameCN ## Faker::NameCN
``` ruby
Faker::NameCN.name #=> "姵书虞" Faker::NameCN.name #=> "姵书虞"
#=> "修男嵇" #=> "修男嵇"
#=> "瑜人军" #=> "瑜人军"
@ -316,11 +294,9 @@ Faker::NameCN.first_name #=> "佑淑"
Faker::NameCN.last_name #=> "释" Faker::NameCN.last_name #=> "释"
#=> "巩" #=> "巩"
#=> "麻" #=> "麻"
```
## Faker::NameDE ## Faker::NameDE
``` ruby
Faker::NameDE.name #=> "Noelle Schuster" Faker::NameDE.name #=> "Noelle Schuster"
#=> "Bendix Schmid" #=> "Bendix Schmid"
#=> "Azra Neumann" #=> "Azra Neumann"
@ -336,11 +312,9 @@ Faker::NameDE.last_name #=> "Martin"
Faker::NameDE.prefix #=> "Frau" Faker::NameDE.prefix #=> "Frau"
#=> "Prof." #=> "Prof."
#=> "Prof." #=> "Prof."
```
## Faker::NameJA ## Faker::NameJA
``` ruby
Faker::NameJA.name #=> "飛鳥田部" Faker::NameJA.name #=> "飛鳥田部"
#=> "未杉浦" #=> "未杉浦"
#=> "功本間" #=> "功本間"
@ -356,11 +330,9 @@ Faker::NameJA.first_name #=> "巴"
Faker::NameJA.last_name #=> "小栗" Faker::NameJA.last_name #=> "小栗"
#=> "高江洲" #=> "高江洲"
#=> "友寄" #=> "友寄"
```
## Faker::NameRU ## Faker::NameRU
``` ruby
Faker::NameRU.name #=> "Стелла Карнилина" Faker::NameRU.name #=> "Стелла Карнилина"
#=> "Евгения Мазовская" #=> "Евгения Мазовская"
#=> "Кузьма Ваиренко" #=> "Кузьма Ваиренко"
@ -384,11 +356,9 @@ Faker::NameRU.name(:male) #=> "Слежиков Роман Все
Faker::NameRU.name(:female) #=> "Зиядтдинова Полина Людвиговна" Faker::NameRU.name(:female) #=> "Зиядтдинова Полина Людвиговна"
#=> "Андреева Тереза Арсеновна" #=> "Андреева Тереза Арсеновна"
#=> "Дарина Минхазова" #=> "Дарина Минхазова"
```
## Faker::NameSN ## Faker::NameSN
``` ruby
Faker::NameSN.name_sn #=> "mame Djaly Mbodj" Faker::NameSN.name_sn #=> "mame Djaly Mbodj"
#=> "Hatab Samy" #=> "Hatab Samy"
#=> "Niouma Dramé" #=> "Niouma Dramé"
@ -416,21 +386,16 @@ Faker::NameSN.prefix_male #=> "eladji"
Faker::NameSN.prefix_female #=> "adjaratou" Faker::NameSN.prefix_female #=> "adjaratou"
#=> "adja" #=> "adja"
#=> "adja" #=> "adja"
```
## Faker::PhoneNumberAU ## Faker::PhoneNumberAU
``` ruby
Faker::PhoneNumberAU.phone_number #=> "0495 539 191" Faker::PhoneNumberAU.phone_number #=> "0495 539 191"
#=> "(05) 6838 2406" #=> "(05) 6838 2406"
#=> "0496 013 652" #=> "0496 013 652"
```
## Faker::PhoneNumberSN ## Faker::PhoneNumberSN
``` ruby
Faker::PhoneNumberSN.phone_number #=> "77-356-93-09" Faker::PhoneNumberSN.phone_number #=> "77-356-93-09"
#=> "33-891-67-75" #=> "33-891-67-75"
#=> "33-886-02-02" #=> "33-886-02-02"
```