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

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



16
17
18
# File 'lib/ffaker/address_ch.rb', line 16

def canton_abbr
  CANTON_ABBR.sample
end

#postal_codeObject



12
13
14
# File 'lib/ffaker/address_ch.rb', line 12

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