Sha256: 9809c27b4012e87b64745cbf2e1d4e100af802f880505f74f2c5357e822e0492
Contents?: true
Size: 565 Bytes
Versions: 6
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true module FFaker module AddressID include FFaker::Address extend ModuleUtils extend self STREET_PREFIX = %w[Jl Jln].freeze def zip_code FFaker.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
6 entries across 6 versions & 1 rubygems