Module: FFaker::AddressRU
Constant Summary
collapse
- POSTAL_CODE_FORMAT =
['######'].freeze
- STREET_NBR_FORMATS =
%w[## # ###].freeze
Constants included
from Address
FFaker::Address::CITY_PREFIXES, FFaker::Address::COMPASS_DIRECTIONS, FFaker::Address::SEC_ADDR
Instance Method Summary
collapse
const_missing, k, luhn_check, underscore, unique
#fetch_sample, #rand, #shuffle
Methods included from Address
#building_number, #city_prefix, #city_suffix, #country, #country_code, #neighborhood, #secondary_address, #street_suffix, #time_zone, #uk_country, #uk_county, #uk_postcode, #us_state, #us_state_abbr
Instance Method Details
#city ⇒ Object
13
14
15
|
# File 'lib/ffaker/address_ru.rb', line 13
def city
fetch_sample(CITY)
end
|
#province ⇒ Object
17
18
19
|
# File 'lib/ffaker/address_ru.rb', line 17
def province
fetch_sample(PROVINCE)
end
|
#street_address ⇒ Object
29
30
31
|
# File 'lib/ffaker/address_ru.rb', line 29
def street_address
"#{street_name}, ะด. #{street_number}"
end
|
#street_name ⇒ Object
25
26
27
|
# File 'lib/ffaker/address_ru.rb', line 25
def street_name
fetch_sample(STREET)
end
|