ffaker: update with new layout
This commit is contained in:
parent
db178b3b69
commit
9934b77948
325
ffaker.md
325
ffaker.md
|
@ -1,130 +1,199 @@
|
||||||
---
|
---
|
||||||
title: FFaker
|
title: FFaker
|
||||||
category: Ruby libraries
|
category: Ruby libraries
|
||||||
|
layout: 2017/sheet
|
||||||
|
updated: 2017-09-12
|
||||||
---
|
---
|
||||||
|
|
||||||
# gem install ffaker
|
## FFaker
|
||||||
require 'ffaker'
|
{: .-one-column}
|
||||||
|
|
||||||
|
### Installing
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
# gem install ffaker
|
||||||
|
require 'ffaker'
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::Address
|
## Faker::Address
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::Address.city #=> "Autumnside"
|
```ruby
|
||||||
|
Faker::Address.city #=> "Autumnside"
|
||||||
#=> "South Brielleberg"
|
#=> "South Brielleberg"
|
||||||
#=> "West Alvera"
|
#=> "West Alvera"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Address.street_name #=> "Greyson Rapid"
|
```ruby
|
||||||
|
Faker::Address.street_name #=> "Greyson Rapid"
|
||||||
#=> "Hoppe Grove"
|
#=> "Hoppe Grove"
|
||||||
#=> "Reichert Lights"
|
#=> "Reichert Lights"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Address.street_address #=> "98786 Neal Motorway"
|
```ruby
|
||||||
|
Faker::Address.street_address #=> "98786 Neal Motorway"
|
||||||
#=> "6619 Yvonne Dale"
|
#=> "6619 Yvonne Dale"
|
||||||
#=> "6143 Bailey Plaza"
|
#=> "6143 Bailey Plaza"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Address.secondary_address #=> "Suite 560"
|
```ruby
|
||||||
|
Faker::Address.secondary_address #=> "Suite 560"
|
||||||
#=> "Apt. 332"
|
#=> "Apt. 332"
|
||||||
#=> "Apt. 411"
|
#=> "Apt. 411"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::Company
|
## Faker::Company
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::Company.name #=> "Pouros-Ondricka"
|
```ruby
|
||||||
|
Faker::Company.name #=> "Pouros-Ondricka"
|
||||||
#=> "Ward Group"
|
#=> "Ward Group"
|
||||||
#=> "Walter-Romaguera"
|
#=> "Walter-Romaguera"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Company.suffix #=> "and Sons"
|
```ruby
|
||||||
|
Faker::Company.suffix #=> "and Sons"
|
||||||
#=> "LLC"
|
#=> "LLC"
|
||||||
#=> "and Sons"
|
#=> "and Sons"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Company.catch_phrase #=> "Versatile mobile help-desk"
|
```ruby
|
||||||
|
Faker::Company.catch_phrase #=> "Versatile mobile help-desk"
|
||||||
#=> "Extended fresh-thinking utilisation"
|
#=> "Extended fresh-thinking utilisation"
|
||||||
#=> "Reactive coherent flexibility"
|
#=> "Reactive coherent flexibility"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Company.bs #=> "extend one-to-one convergence"
|
```ruby
|
||||||
|
Faker::Company.bs #=> "extend one-to-one convergence"
|
||||||
#=> "architect 24/7 interfaces"
|
#=> "architect 24/7 interfaces"
|
||||||
#=> "revolutionize viral vortals"
|
#=> "revolutionize viral vortals"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Company.position #=> "General Corporate President"
|
```ruby
|
||||||
|
Faker::Company.position #=> "General Corporate President"
|
||||||
#=> "Executive Department Consultant"
|
#=> "Executive Department Consultant"
|
||||||
#=> "Associate Director"
|
#=> "Associate Director"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::Education
|
## Faker::Education
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::Education.school #=> "Larkwood Institution"
|
```ruby
|
||||||
|
Faker::Education.school #=> "Larkwood Institution"
|
||||||
#=> "Whiteshire School"
|
#=> "Whiteshire School"
|
||||||
#=> "California International College"
|
#=> "California International College"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Education.degree #=> "Bachelor of Science in Political Administration"
|
```ruby
|
||||||
|
Faker::Education.degree #=> "Bachelor of Science in Political Administration"
|
||||||
#=> "Doctor of Medicine in Marketing Economics"
|
#=> "Doctor of Medicine in Marketing Economics"
|
||||||
#=> "Bachelor of Music in Marketing Development"
|
#=> "Bachelor of Music in Marketing Development"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Education.degree_short #=> "MD in Industrial Arts"
|
```ruby
|
||||||
|
Faker::Education.degree_short #=> "MD in Industrial Arts"
|
||||||
#=> "DPhil in Social Management"
|
#=> "DPhil in Social Management"
|
||||||
#=> "AB in Political Science"
|
#=> "AB in Political Science"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Education.major #=> "Financial Philosophy"
|
```ruby
|
||||||
|
Faker::Education.major #=> "Financial Philosophy"
|
||||||
#=> "Social Arts"
|
#=> "Social Arts"
|
||||||
#=> "Business Accountancy"
|
#=> "Business Accountancy"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Education.school_name #=> "Larkfield"
|
```ruby
|
||||||
|
Faker::Education.school_name #=> "Larkfield"
|
||||||
#=> "Northshire"
|
#=> "Northshire"
|
||||||
#=> "Lakepoint"
|
#=> "Lakepoint"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::Geolocation
|
## Faker::Geolocation
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::Geolocation.lat #=> 40.89505
|
```ruby
|
||||||
|
Faker::Geolocation.lat #=> 40.89505
|
||||||
#=> 41.77117
|
#=> 41.77117
|
||||||
#=> 41.022921
|
#=> 41.022921
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Geolocation.lng #=> -115.120716573
|
```ruby
|
||||||
|
Faker::Geolocation.lng #=> -115.120716573
|
||||||
#=> -118.427610513239
|
#=> -118.427610513239
|
||||||
#=> -72.204989
|
#=> -72.204989
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::Internet
|
## Faker::Internet
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::Internet.email #=> "dayna@auer.name"
|
```ruby
|
||||||
|
Faker::Internet.email #=> "dayna@auer.name"
|
||||||
#=> "joy@nienowbradtke.info"
|
#=> "joy@nienowbradtke.info"
|
||||||
#=> "bernhard@wyman.ca"
|
#=> "bernhard@wyman.ca"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Internet.user_name #=> "emory"
|
```ruby
|
||||||
|
Faker::Internet.user_name #=> "emory"
|
||||||
#=> "janelle_schamberger"
|
#=> "janelle_schamberger"
|
||||||
#=> "brigitte.dooley"
|
#=> "brigitte.dooley"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Internet.domain_name #=> "langworth.biz"
|
```ruby
|
||||||
|
Faker::Internet.domain_name #=> "langworth.biz"
|
||||||
#=> "corkery.info"
|
#=> "corkery.info"
|
||||||
#=> "schroeder.uk"
|
#=> "schroeder.uk"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Internet.disposable_email #=> "barrett_schroeder@spamherelots.com"
|
```ruby
|
||||||
|
Faker::Internet.disposable_email #=> "barrett_schroeder@spamherelots.com"
|
||||||
#=> "nicholaus@suremail.info"
|
#=> "nicholaus@suremail.info"
|
||||||
#=> "gladys@safetymail.info"
|
#=> "gladys@safetymail.info"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Internet.free_email #=> "lemuel@yahoo.com"
|
```ruby
|
||||||
|
Faker::Internet.free_email #=> "lemuel@yahoo.com"
|
||||||
#=> "nickolas.gulgowski@gmail.com"
|
#=> "nickolas.gulgowski@gmail.com"
|
||||||
#=> "isaac_ankunding@gmail.com"
|
#=> "isaac_ankunding@gmail.com"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Internet.domain_word #=> "purdykutch"
|
```ruby
|
||||||
|
Faker::Internet.domain_word #=> "purdykutch"
|
||||||
#=> "sauer"
|
#=> "sauer"
|
||||||
#=> "trantowmaggio"
|
#=> "trantowmaggio"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Internet.domain_suffix #=> "us"
|
```ruby
|
||||||
|
Faker::Internet.domain_suffix #=> "us"
|
||||||
#=> "info"
|
#=> "info"
|
||||||
#=> "biz"
|
#=> "biz"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::Job
|
## Faker::Job
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::Job.title #=> "Future Data Assistant"
|
```ruby
|
||||||
|
Faker::Job.title #=> "Future Data Assistant"
|
||||||
#=> "Product Division Technician"
|
#=> "Product Division Technician"
|
||||||
#=> "Product Research Developer"
|
#=> "Product Research Developer"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::Lorem
|
## Faker::Lorem
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::Lorem.word #=> "sint"
|
```ruby
|
||||||
|
Faker::Lorem.word #=> "sint"
|
||||||
#=> "sit"
|
#=> "sit"
|
||||||
#=> "omnis"
|
#=> "omnis"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Lorem.sentence #=> "Expedita et aspernatur eum sit ipsam culpa."
|
```ruby
|
||||||
|
Faker::Lorem.sentence #=> "Expedita et aspernatur eum sit ipsam culpa."
|
||||||
#=> "Rem sunt voluptatem laborum dolores."
|
#=> "Rem sunt voluptatem laborum dolores."
|
||||||
#=> "Ad explicabo atque culpa."
|
#=> "Ad explicabo atque culpa."
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Lorem.paragraph #=> "Quidem deserunt qui atque labore sunt quis laborum. Et iste
|
```ruby
|
||||||
|
Faker::Lorem.paragraph #=> "Quidem deserunt qui atque labore sunt quis laborum. Et iste
|
||||||
# laudantium nobis adipisci delectus. Quod vero repudiandae m
|
# laudantium nobis adipisci delectus. Quod vero repudiandae m
|
||||||
# agni repellat totam. Id ullam a aperiam et laboriosam. Volup
|
# agni repellat totam. Id ullam a aperiam et laboriosam. Volup
|
||||||
# tas aut perspiciatis o..."
|
# tas aut perspiciatis o..."
|
||||||
|
@ -136,19 +205,25 @@ category: Ruby libraries
|
||||||
# in. Nemo velit incidunt dolor perspiciatis. Ipsum minima oc
|
# in. Nemo velit incidunt dolor perspiciatis. Ipsum minima oc
|
||||||
# caecati est laudantium ducimus libero. Et fugit et adipisci
|
# caecati est laudantium ducimus libero. Et fugit et adipisci
|
||||||
# molestias. Cupiditate ..."
|
# molestias. Cupiditate ..."
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Lorem.words(4) #=> ["repellat", "quos", "amet", "voluptatem"]
|
```ruby
|
||||||
|
Faker::Lorem.words(4) #=> ["repellat", "quos", "amet", "voluptatem"]
|
||||||
#=> ["porro", "molestias", "ut", "qui"]
|
#=> ["porro", "molestias", "ut", "qui"]
|
||||||
#=> ["blanditiis", "soluta", "enim", "fugit"]
|
#=> ["blanditiis", "soluta", "enim", "fugit"]
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Lorem.sentence(5) #=> "Laborum sint voluptate voluptatem rem doloremque et incidun
|
```ruby
|
||||||
|
Faker::Lorem.sentence(5) #=> "Laborum sint voluptate voluptatem rem doloremque et incidun
|
||||||
# t itaque."
|
# t itaque."
|
||||||
#=> "Autem atque eum laborum alias perspiciatis debitis suscipit
|
#=> "Autem atque eum laborum alias perspiciatis debitis suscipit
|
||||||
# deserunt sint."
|
# deserunt sint."
|
||||||
#=> "Quaerat nam consectetur eum dolor deleniti tempore doloremq
|
#=> "Quaerat nam consectetur eum dolor deleniti tempore doloremq
|
||||||
# ue et aspernatur."
|
# ue et aspernatur."
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Lorem.sentences(3) #=> ["Culpa debitis architecto est.", "Quo et voluptatem distinc
|
```ruby
|
||||||
|
Faker::Lorem.sentences(3) #=> ["Culpa debitis architecto est.", "Quo et voluptatem distinc
|
||||||
# tio repellendus qui cupiditate.", "Quo repellendus ut eius."
|
# tio repellendus qui cupiditate.", "Quo repellendus ut eius."
|
||||||
# ]
|
# ]
|
||||||
#=> ["Quos nihil dolorem quidem maxime.", "Expedita ab veniam do
|
#=> ["Quos nihil dolorem quidem maxime.", "Expedita ab veniam do
|
||||||
|
@ -156,8 +231,10 @@ category: Ruby libraries
|
||||||
# non saepe consequatur molestias minus."]
|
# non saepe consequatur molestias minus."]
|
||||||
#=> ["Quasi velit et voluptas est.", "Dolores ut dolor aut repel
|
#=> ["Quasi velit et voluptas est.", "Dolores ut dolor aut repel
|
||||||
# lat fuga minima sed quia.", "Eum id minus atque ex modi."]
|
# lat fuga minima sed quia.", "Eum id minus atque ex modi."]
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Lorem.paragraphs(3) #=> ["Iusto mollitia sequi nam perspiciatis fuga aut. Modi moles
|
```ruby
|
||||||
|
Faker::Lorem.paragraphs(3) #=> ["Iusto mollitia sequi nam perspiciatis fuga aut. Modi moles
|
||||||
# tiae consectetur architecto et dolorem aut perferendis. Cumq
|
# tiae consectetur architecto et dolorem aut perferendis. Cumq
|
||||||
# ue rerum aliquam sapiente. Dolorum quo reiciendis nemo vero.
|
# ue rerum aliquam sapiente. Dolorum quo reiciendis nemo vero.
|
||||||
# Quo earum explicabo pariatur.", "Possimus omnis accusamus f
|
# Quo earum explicabo pariatur.", "Possimus omnis accusamus f
|
||||||
|
@ -182,10 +259,13 @@ category: Ruby libraries
|
||||||
# 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
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::HipsterIpsum.paragraph #=> "Wayfarers mustache thundercats pitchfork messenger bag high
|
```ruby
|
||||||
|
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
|
||||||
# thical wayfarers scene..."
|
# thical wayfarers scene..."
|
||||||
|
@ -197,10 +277,13 @@ category: Ruby libraries
|
||||||
# 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
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::HTMLIpsum.body #=> "<h1>Exercitationem et</h1><table><thead><tr><th>Eligendi</t
|
```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
|
# h><th>Vel</th><th>Sed</th><th>At</th></tr></thead><tbody><tr
|
||||||
# ><..."
|
# ><..."
|
||||||
#=> "<h1>Excepturi sequi</h1><table><thead><tr><th>Quam</th><th>
|
#=> "<h1>Excepturi sequi</h1><table><thead><tr><th>Quam</th><th>
|
||||||
|
@ -210,16 +293,20 @@ category: Ruby libraries
|
||||||
# estiae id vel ipsam a accusantium et ut. Sunt et fugiat qui
|
# estiae id vel ipsam a accusantium et ut. Sunt et fugiat qui
|
||||||
# sint ab quia. Eum ut molestiae cumque molestiae error volupt
|
# sint ab quia. Eum ut molestiae cumque molestiae error volupt
|
||||||
# ates. Ipsum molestiae ..."
|
# ates. Ipsum molestiae ..."
|
||||||
|
```
|
||||||
|
|
||||||
Faker::HTMLIpsum.table #=> "<table><thead><tr><th>Voluptatem</th><th>Porro</th><th>Tene
|
```ruby
|
||||||
|
Faker::HTMLIpsum.table #=> "<table><thead><tr><th>Voluptatem</th><th>Porro</th><th>Tene
|
||||||
# tur</th><th>Facilis</th></tr></thead><tbody><tr><td>Numquam<
|
# tur</th><th>Facilis</th></tr></thead><tbody><tr><td>Numquam<
|
||||||
# /t..."
|
# /t..."
|
||||||
#=> "<table><thead><tr><th>Impedit</th><th>Voluptatem</th><th>Qu
|
#=> "<table><thead><tr><th>Impedit</th><th>Voluptatem</th><th>Qu
|
||||||
# i</th><th>Est</th></tr></thead><tbody><tr><td>Nihil</td>..."
|
# i</th><th>Est</th></tr></thead><tbody><tr><td>Nihil</td>..."
|
||||||
#=> "<table><thead><tr><th>Iste</th><th>Et</th><th>Sequi</th><th
|
#=> "<table><thead><tr><th>Iste</th><th>Et</th><th>Sequi</th><th
|
||||||
# >Et</th></tr></thead><tbody><tr><td>Blanditiis</td>..."
|
# >Et</th></tr></thead><tbody><tr><td>Blanditiis</td>..."
|
||||||
|
```
|
||||||
|
|
||||||
Faker::HTMLIpsum.fancy_string #=> "<a href=\"#distinctio\" title=\"Tenetur explicabo\">Velit e
|
```ruby
|
||||||
|
Faker::HTMLIpsum.fancy_string #=> "<a href=\"#distinctio\" title=\"Tenetur explicabo\">Velit e
|
||||||
# st</a> <code>aperiam reiciendis</code> Consectetur aut hic e
|
# st</a> <code>aperiam reiciendis</code> Consectetur aut hic e
|
||||||
# um quisquam. Dolore aut rerum dolor accusantium ab repellend
|
# um quisquam. Dolore aut rerum dolor accusantium ab repellend
|
||||||
# us magni. Deserunt optio o..."
|
# us magni. Deserunt optio o..."
|
||||||
|
@ -231,176 +318,262 @@ category: Ruby libraries
|
||||||
# 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
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::Name.name #=> "Trevion Herman V"
|
```ruby
|
||||||
|
Faker::Name.name #=> "Trevion Herman V"
|
||||||
#=> "Aracely Balistreri"
|
#=> "Aracely Balistreri"
|
||||||
#=> "Daphnee Terry Sr."
|
#=> "Daphnee Terry Sr."
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Name.first_name #=> "Aliza"
|
```ruby
|
||||||
|
Faker::Name.first_name #=> "Aliza"
|
||||||
#=> "Joseph"
|
#=> "Joseph"
|
||||||
#=> "Orland"
|
#=> "Orland"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Name.last_name #=> "Hand"
|
```ruby
|
||||||
|
Faker::Name.last_name #=> "Hand"
|
||||||
#=> "Macejkovic"
|
#=> "Macejkovic"
|
||||||
#=> "Heller"
|
#=> "Heller"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Name.prefix #=> "Dr."
|
```ruby
|
||||||
|
Faker::Name.prefix #=> "Dr."
|
||||||
#=> "Ms."
|
#=> "Ms."
|
||||||
#=> "Mr."
|
#=> "Mr."
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Name.suffix #=> "I"
|
```ruby
|
||||||
|
Faker::Name.suffix #=> "I"
|
||||||
#=> "III"
|
#=> "III"
|
||||||
#=> "DDS"
|
#=> "DDS"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::PhoneNumber
|
## Faker::PhoneNumber
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::PhoneNumber.phone_number #=> "335-364-4549 x430"
|
```ruby
|
||||||
|
Faker::PhoneNumber.phone_number #=> "335-364-4549 x430"
|
||||||
#=> "040-278-4021 x753"
|
#=> "040-278-4021 x753"
|
||||||
#=> "420.645.4382"
|
#=> "420.645.4382"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::PhoneNumber.short_phone_number #=> "473-412-3192"
|
```ruby
|
||||||
|
Faker::PhoneNumber.short_phone_number #=> "473-412-3192"
|
||||||
#=> "353-084-1297"
|
#=> "353-084-1297"
|
||||||
#=> "080-546-2356"
|
#=> "080-546-2356"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::Product
|
## Faker::Product
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::Product.brand #=> "Trouffeforge"
|
```ruby
|
||||||
|
Faker::Product.brand #=> "Trouffeforge"
|
||||||
#=> "VIG"
|
#=> "VIG"
|
||||||
#=> "NDZ"
|
#=> "NDZ"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Product.product_name #=> "Air HD Viewer"
|
```ruby
|
||||||
|
Faker::Product.product_name #=> "Air HD Viewer"
|
||||||
#=> "HD Kit"
|
#=> "HD Kit"
|
||||||
#=> "Air HD Bridge"
|
#=> "Air HD Bridge"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Product.product #=> "Amnix Air HD Tuner"
|
```ruby
|
||||||
|
Faker::Product.product #=> "Amnix Air HD Tuner"
|
||||||
#=> "Panapod Audible Filter"
|
#=> "Panapod Audible Filter"
|
||||||
#=> "Phuffe Disc Receiver"
|
#=> "Phuffe Disc Receiver"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::Product.model #=> "I-422"
|
```ruby
|
||||||
|
Faker::Product.model #=> "I-422"
|
||||||
#=> "J89"
|
#=> "J89"
|
||||||
#=> "L6"
|
#=> "L6"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::NameCN
|
## Faker::NameCN
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::NameCN.name #=> "姵书虞"
|
```ruby
|
||||||
|
Faker::NameCN.name #=> "姵书虞"
|
||||||
#=> "修男嵇"
|
#=> "修男嵇"
|
||||||
#=> "瑜人军"
|
#=> "瑜人军"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameCN.last_first #=> "向坚舜"
|
```ruby
|
||||||
|
Faker::NameCN.last_first #=> "向坚舜"
|
||||||
#=> "疏骏哲"
|
#=> "疏骏哲"
|
||||||
#=> "秘合雪"
|
#=> "秘合雪"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameCN.first_name #=> "佑淑"
|
```ruby
|
||||||
|
Faker::NameCN.first_name #=> "佑淑"
|
||||||
#=> "燕谦"
|
#=> "燕谦"
|
||||||
#=> "重生"
|
#=> "重生"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameCN.last_name #=> "释"
|
```ruby
|
||||||
|
Faker::NameCN.last_name #=> "释"
|
||||||
#=> "巩"
|
#=> "巩"
|
||||||
#=> "麻"
|
#=> "麻"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::NameDE
|
## Faker::NameDE
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::NameDE.name #=> "Noelle Schuster"
|
```ruby
|
||||||
|
Faker::NameDE.name #=> "Noelle Schuster"
|
||||||
#=> "Bendix Schmid"
|
#=> "Bendix Schmid"
|
||||||
#=> "Azra Neumann"
|
#=> "Azra Neumann"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameDE.first_name #=> "Victoria"
|
```ruby
|
||||||
|
Faker::NameDE.first_name #=> "Victoria"
|
||||||
#=> "Lotta"
|
#=> "Lotta"
|
||||||
#=> "Mads"
|
#=> "Mads"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameDE.last_name #=> "Martin"
|
```ruby
|
||||||
|
Faker::NameDE.last_name #=> "Martin"
|
||||||
#=> "Klein"
|
#=> "Klein"
|
||||||
#=> "Walter"
|
#=> "Walter"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameDE.prefix #=> "Frau"
|
```ruby
|
||||||
|
Faker::NameDE.prefix #=> "Frau"
|
||||||
#=> "Prof."
|
#=> "Prof."
|
||||||
#=> "Prof."
|
#=> "Prof."
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::NameJA
|
## Faker::NameJA
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::NameJA.name #=> "飛鳥田部"
|
```ruby
|
||||||
|
Faker::NameJA.name #=> "飛鳥田部"
|
||||||
#=> "未杉浦"
|
#=> "未杉浦"
|
||||||
#=> "功本間"
|
#=> "功本間"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameJA.last_first #=> "青木杏子"
|
```ruby
|
||||||
|
Faker::NameJA.last_first #=> "青木杏子"
|
||||||
#=> "棚原大貴"
|
#=> "棚原大貴"
|
||||||
#=> "知名翔"
|
#=> "知名翔"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameJA.first_name #=> "巴"
|
```ruby
|
||||||
|
Faker::NameJA.first_name #=> "巴"
|
||||||
#=> "浩子"
|
#=> "浩子"
|
||||||
#=> "沙耶"
|
#=> "沙耶"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameJA.last_name #=> "小栗"
|
```ruby
|
||||||
|
Faker::NameJA.last_name #=> "小栗"
|
||||||
#=> "高江洲"
|
#=> "高江洲"
|
||||||
#=> "友寄"
|
#=> "友寄"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::NameRU
|
## Faker::NameRU
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::NameRU.name #=> "Стелла Карнилина"
|
```ruby
|
||||||
|
Faker::NameRU.name #=> "Стелла Карнилина"
|
||||||
#=> "Евгения Мазовская"
|
#=> "Евгения Мазовская"
|
||||||
#=> "Кузьма Ваиренко"
|
#=> "Кузьма Ваиренко"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameRU.last_name #=> "Манишева"
|
```ruby
|
||||||
|
Faker::NameRU.last_name #=> "Манишева"
|
||||||
#=> "Тюлева"
|
#=> "Тюлева"
|
||||||
#=> "Понченко"
|
#=> "Понченко"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameRU.first_name #=> "Артур"
|
```ruby
|
||||||
|
Faker::NameRU.first_name #=> "Артур"
|
||||||
#=> "Руслана"
|
#=> "Руслана"
|
||||||
#=> "Зинаида"
|
#=> "Зинаида"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameRU.patronymic #=> "Мечеславович"
|
```ruby
|
||||||
|
Faker::NameRU.patronymic #=> "Мечеславович"
|
||||||
#=> "Ионович"
|
#=> "Ионович"
|
||||||
#=> "Исаевич"
|
#=> "Исаевич"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameRU.name(:male) #=> "Слежиков Роман Всеволодович"
|
```ruby
|
||||||
|
Faker::NameRU.name(:male) #=> "Слежиков Роман Всеволодович"
|
||||||
#=> "Осип Мугрузин"
|
#=> "Осип Мугрузин"
|
||||||
#=> "Джиджаев Гавриил Леванович"
|
#=> "Джиджаев Гавриил Леванович"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameRU.name(:female) #=> "Зиядтдинова Полина Людвиговна"
|
```ruby
|
||||||
|
Faker::NameRU.name(:female) #=> "Зиядтдинова Полина Людвиговна"
|
||||||
#=> "Андреева Тереза Арсеновна"
|
#=> "Андреева Тереза Арсеновна"
|
||||||
#=> "Дарина Минхазова"
|
#=> "Дарина Минхазова"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::NameSN
|
## Faker::NameSN
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::NameSN.name_sn #=> "mame Djaly Mbodj"
|
```ruby
|
||||||
|
Faker::NameSN.name_sn #=> "mame Djaly Mbodj"
|
||||||
#=> "Hatab Samy"
|
#=> "Hatab Samy"
|
||||||
#=> "Niouma Dramé"
|
#=> "Niouma Dramé"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameSN.name_male #=> "serigne Yakou Diagne"
|
```ruby
|
||||||
|
Faker::NameSN.name_male #=> "serigne Yakou Diagne"
|
||||||
#=> "serigne Sécouba Diagne"
|
#=> "serigne Sécouba Diagne"
|
||||||
#=> "Sihalébé Badji"
|
#=> "Sihalébé Badji"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameSN.name_female #=> "Thiomba Niang"
|
```ruby
|
||||||
|
Faker::NameSN.name_female #=> "Thiomba Niang"
|
||||||
#=> "adjaratou Kiné Panduppy"
|
#=> "adjaratou Kiné Panduppy"
|
||||||
#=> "Nini Gakou"
|
#=> "Nini Gakou"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameSN.first_name_male #=> "Khoudia"
|
```ruby
|
||||||
|
Faker::NameSN.first_name_male #=> "Khoudia"
|
||||||
#=> "Sanokho"
|
#=> "Sanokho"
|
||||||
#=> "Diomaye"
|
#=> "Diomaye"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameSN.first_name_female #=> "Assa"
|
```ruby
|
||||||
|
Faker::NameSN.first_name_female #=> "Assa"
|
||||||
#=> "Sahaba"
|
#=> "Sahaba"
|
||||||
#=> "Manthita"
|
#=> "Manthita"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameSN.prefix_male #=> "eladji"
|
```ruby
|
||||||
|
Faker::NameSN.prefix_male #=> "eladji"
|
||||||
#=> "eladji"
|
#=> "eladji"
|
||||||
#=> "serigne"
|
#=> "serigne"
|
||||||
|
```
|
||||||
|
|
||||||
Faker::NameSN.prefix_female #=> "adjaratou"
|
```ruby
|
||||||
|
Faker::NameSN.prefix_female #=> "adjaratou"
|
||||||
#=> "adja"
|
#=> "adja"
|
||||||
#=> "adja"
|
#=> "adja"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::PhoneNumberAU
|
## Faker::PhoneNumberAU
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::PhoneNumberAU.phone_number #=> "0495 539 191"
|
```ruby
|
||||||
|
Faker::PhoneNumberAU.phone_number #=> "0495 539 191"
|
||||||
#=> "(05) 6838 2406"
|
#=> "(05) 6838 2406"
|
||||||
#=> "0496 013 652"
|
#=> "0496 013 652"
|
||||||
|
```
|
||||||
|
|
||||||
## Faker::PhoneNumberSN
|
## Faker::PhoneNumberSN
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
Faker::PhoneNumberSN.phone_number #=> "77-356-93-09"
|
```ruby
|
||||||
|
Faker::PhoneNumberSN.phone_number #=> "77-356-93-09"
|
||||||
#=> "33-891-67-75"
|
#=> "33-891-67-75"
|
||||||
#=> "33-886-02-02"
|
#=> "33-886-02-02"
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue