Sha256: 1dc288526b3b7cdb6f4221e05681b0611a70e5aa6c02ec8def53e04b171102d2
Contents?: true
Size: 698 Bytes
Versions: 3
Compression:
Stored size: 698 Bytes
Contents
# encoding: utf-8 require 'ffaker/address' module FFaker module AddressUS include FFaker::Address extend ModuleUtils extend self ZIP_FORMATS = ['#####', '#####-####'] CONTINENTAL_STATE = (STATE - ['Hawaii', 'Alaska']) CONTINENTAL_STATE_ABBR = (STATE_ABBR - ['HI', 'AK']) def zip_code FFaker.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.2.0 | lib/ffaker/address_us.rb |
ffaker-2.1.0 | lib/ffaker/address_us.rb |
ffaker-2.0.0 | lib/ffaker/address_us.rb |