module Faker::AddressUS

Constants

ZIP_FORMATS

Public Instance Methods

state() click to toggle source
# File lib/ffakerer/address_us.rb, line 16
def state
  STATE.rand
end
state_abbr() click to toggle source
# File lib/ffakerer/address_us.rb, line 20
def state_abbr
  STATE_ABBR.rand
end
state_and_territories_abbr() click to toggle source
# File lib/ffakerer/address_us.rb, line 24
def state_and_territories_abbr
  STATE_AND_TERRITORIES_ABBR.rand
end
zip_code() click to toggle source
# File lib/ffakerer/address_us.rb, line 12
def zip_code
  Faker.numerify ZIP_FORMATS.rand
end