Sha256: 0639613c4e1f1e6014c9712117754939b917a0dc76bf4e85a7356bc848b1a5b8
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true module FFakerTW module AddressID include FFakerTW::Address extend ModuleUtils extend self STREET_PREFIX = %w[Jl Jln].freeze def zip_code FFakerTW.numerify '#####' end def state fetch_sample(STATE) end def state_abbr fetch_sample(STATE_ABBR) end def city fetch_sample(CITY) end def street_prefix fetch_sample(STREET_PREFIX) end def street "#{street_prefix}. #{fetch_sample(COMMON_STREET_NAMES)}, No. #{rand(1..100)}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | lib/ffakerTW/address_id.rb |