Sha256: 67ecf3c3f7f26cba4c6d34961aadf257147a9fa27925b383fe77cb21375475db
Contents?: true
Size: 695 Bytes
Versions: 5
Compression:
Stored size: 695 Bytes
Contents
# encoding: utf-8 require 'ffaker/address' module Faker module AddressUS include Faker::Address extend ModuleUtils extend self ZIP_FORMATS = ['#####', '#####-####'] CONTINENTAL_STATE = (STATE - ['Hawaii', 'Alaska']) CONTINENTAL_STATE_ABBR = (STATE_ABBR - ['HI', 'AK']) def zip_code Faker.numerify ZIP_FORMATS.sample end def state STATE.sample end def state_abbr STATE_ABBR.sample end def state_and_territories_abbr STATE_AND_TERRITORIES_ABBR.sample end def continental_state CONTINENTAL_STATE.sample end def continental_state_abbr CONTINENTAL_STATE_ABBR.sample end end end
Version data entries
5 entries across 5 versions & 2 rubygems