Module: FFaker::AddressGR
Constant Summary
collapse
- STREET_PREFIX =
[%w[Οδός Πάροδος]].freeze
- STREET_NUMBER =
[%w[# ## ###]].freeze
- STATE =
REGION
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
22
23
24
|
# File 'lib/ffaker/address_gr.rb', line 22
def city
fetch_sample(CITY)
end
|
#region ⇒ Object
18
19
20
|
# File 'lib/ffaker/address_gr.rb', line 18
def region
fetch_sample(STATE)
end
|
#street_address ⇒ Object
34
35
36
|
# File 'lib/ffaker/address_gr.rb', line 34
def street_address
"#{fetch_sample(STREET_PREFIX)} #{street_name}, #{street_nbr}"
end
|
#street_name ⇒ Object
26
27
28
|
# File 'lib/ffaker/address_gr.rb', line 26
def street_name
fetch_sample(STREET)
end
|
#zip_code ⇒ Object
14
15
16
|
# File 'lib/ffaker/address_gr.rb', line 14
def zip_code
FFaker.numerify '#####'
end
|