Skip to content
spiman edited this page Nov 12, 2014 · 5 revisions

A list Address helpers you can use. Try it out!

irb
require 'rubygems'
require 'faker'

Faker::Address

Faker::Address.city
 => "Laishaville"

Faker::Address.street_name
 => "Eliseo Prairie"

Faker::Address.street_address
 => "5182 Carroll Springs"

Faker::Address.secondary_address
 => "Suite 700"

Faker::Address.zip_code
 => "37820-2460"

Faker::Address.zip
 => "48961"

Faker::Address.postcode
 => "77498-6303"

Faker::Address.street_suffix
 => "Cape"

Faker::Address.city_suffix
 => "port"

Faker::Address.city_prefix
 => "Port"

Faker::Address.state_abbr
 => "AR"

Faker::Address.state
 => "Louisiana"

Faker::Address.country
 => "United States"

Faker::Address.country_code
 => "US"
Clone this wiki locally