module FFaker::AddressNL
Public Instance Methods
Source
# File lib/ffaker/address_nl.rb, line 10 def postal_code FFaker::String.from_regexp(/[1-9]\d{3} [A-RT-Z][A-Z]/) end
Source
# File lib/ffaker/address_nl.rb, line 18 def street_name name = fetch_sample([true, false]) ? NameNL.last_name : NameNL.first_name name + random_type_of_street end
Private Instance Methods
Source
# File lib/ffaker/address_nl.rb, line 33 def random_type_of_street case rand(0..19) when 0 then 'weg' when 1 then 'boulevard' when 3 then 'pad' when 4 then 'steeg' else 'straat' end end