Sha256: a219adcef5e15bfb149ca16931f2f2ed3a317d6a694eeb205b367a745be7a6df
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
# encoding: utf-8 require 'ffaker/address' module Faker module AddressUS include Faker::Address extend ModuleUtils extend self def zip_code Faker.numerify ZIP_FORMATS.rand end def state STATE.rand end def state_abbr STATE_ABBR.rand end def state_and_territories_abbr STATE_AND_TERRITORIES_ABBR.rand end def continental_state CONTINENTAL_STATE.rand end def continental_state_abbr CONTINENTAL_STATE_ABBR.rand end ZIP_FORMATS = k ['#####', '#####-####'] CONTINENTAL_STATE = k (STATE - ['Hawaii', 'Alaska']) CONTINENTAL_STATE_ABBR = k (STATE_ABBR - ['HI', 'AK']) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffaker-1.30.0 | lib/ffaker/address_us.rb |