File: demographic.md

package info (click to toggle)
ruby-faker 3.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,596 kB
  • sloc: ruby: 20,656; sh: 6; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Faker::Demographic

Available since version 1.7.3.

```ruby
Faker::Demographic.race #=> "Native Hawaiian or Other Pacific Islander"

Faker::Demographic.educational_attainment #=> "GED or alternative credential"

Faker::Demographic.demonym #=> "Panamanian"

Faker::Demographic.marital_status #=> "Widowed"

Faker::Demographic.sex #=> "Female"

Faker::Demographic.height #=> "1.61"

# Keyword arguments: unit
Faker::Demographic.height(unit: :imperial) #=> "6 ft, 2 in"
```