Sha256: f9635a2e07d8b6536342ba8486dacb674e9f831f134a109383571d5da4b03aaa
Contents?: true
Size: 800 Bytes
Versions: 2
Compression:
Stored size: 800 Bytes
Contents
# encoding: utf-8 require 'ffaker/address' module Faker module AddressDA include Faker::Address extend ModuleUtils extend self def zip_code Faker.numerify ZIP_FORMATS.rand end def post_nr zip_code end def state kommune end def kommune KOMMUNE.rand end def region REGION.rand end def city CITY.rand end ZIP_FORMATS = k ['####'] def street_name STREET.rand end def street_address "#{Faker::AddressDA.street_address} #{rand(100)}" end def full_address %Q{#{street_address} #{post_nr} #{city} #{region} DANMARK} end REGION = k [ 'Hovedstaden', 'Sjælland', 'Syddanmark', 'Midtjylland', 'Nordjylland' ] STATE = REGION end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffaker-1.22.1 | lib/ffaker/address_da.rb |
ffaker-1.22.0 | lib/ffaker/address_da.rb |