Module: FFaker::AddressCH

Extended by:
AddressCH, ModuleUtils
Includes:
Address
Included in:
AddressCH, AddressCHDE, AddressCHFR, AddressCHIT
Defined in:
lib/ffaker/address_ch.rb

Constant Summary

Constants included from Address

FFaker::Address::CITY_PREFIXES, FFaker::Address::COMPASS_DIRECTIONS, FFaker::Address::SEC_ADDR

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Methods included from Address

#building_number, #city, #city_prefix, #city_suffix, #country, #country_code, #neighborhood, #secondary_address, #street_address, #street_name, #street_suffix, #time_zone, #uk_country, #uk_county, #uk_postcode, #us_state, #us_state_abbr, #zip_code

Instance Method Details

#canton_abbrObject


14
15
16
# File 'lib/ffaker/address_ch.rb', line 14

def canton_abbr
  fetch_sample(CANTON_ABBR)
end

#postal_codeObject


10
11
12
# File 'lib/ffaker/address_ch.rb', line 10

def postal_code
  FFaker.numerify '####'
end