Skip to content

Instantly share code, notes, and snippets.

@mikekovacevic
Last active October 2, 2023 05:38
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mikekovacevic/8919216 to your computer and use it in GitHub Desktop.
Save mikekovacevic/8919216 to your computer and use it in GitHub Desktop.
Faker Ruby Gem Cheatsheet

A cheatsheet of all the Faker Wiki Pages

Faker::Address

  • city
  • city_prefix
  • city_suffix
  • country
  • postcode
  • secondary_address
  • state
  • street_abbr
  • street_address
  • street_name
  • street_suffix
  • zip
  • zip_code

Faker::Company

  • bs
  • catch_phrase
  • name
  • suffix

Faker::Internet

  • domain_name
  • domain_suffix
  • domain_word
  • email
  • free_email
  • ip_v4_address
  • ip_v6_address
  • safe_email
  • url
  • user_name

Faker::Lorem

  • characters(int)
  • paragraph(int)
  • paragraphs(int)
  • sentence(int)
  • sentences(int)
  • word
  • words(int)

Faker::Name

  • first_name
  • last_name
  • name
  • prefix
  • suffix

Faker::PhoneNumber

  • phone_number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment