Module: Faker::AddressFR
Constant Summary
collapse
- NUM =
['#', '##', '##', '###', '####', '#-##']
- MOD =
[' B', ' T', ' Q', ' BIS', ' TER', ' QUATER', '', '', '', '']
- SEP =
[', ', ' ']
- TYPE =
%w[rue avenue av boulevard bd impasse]
- POSTAL_CODE_FORMATS =
['####', '#####', '97####', '2A###', '2B###']
Constants included
from Address
Faker::Address::CITY_PREFIXES, Faker::Address::COMPASS_DIRECTIONS, Faker::Address::SEC_ADDR
Instance Method Summary
collapse
const_missing, k, underscore
Methods included from Address
#building_number, #city_prefix, #city_suffix, #country, #country_code, #neighborhood, #secondary_address, #street_name, #street_suffix, #uk_country, #uk_county, #uk_postcode, #us_state, #us_state_abbr, #zip_code
Instance Method Details
#city ⇒ Object
30
31
32
|
# File 'lib/ffaker/address_fr.rb', line 30
def city
CITY.sample
end
|
#full_address ⇒ Object
34
35
36
|
# File 'lib/ffaker/address_fr.rb', line 34
def full_address
%Q{#{street_address}#{SEP.sample}#{postal_code} #{CITY.sample}}
end
|