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