Module: FFaker::AddressGR

Extended by:
AddressGR, ModuleUtils
Includes:
Address
Included in:
AddressGR
Defined in:
lib/ffaker/address_gr.rb

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

Methods included from ModuleUtils

const_missing, k, underscore, unique

Methods included from RandomUtils

#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

#cityObject


24
25
26
# File 'lib/ffaker/address_gr.rb', line 24

def city
  fetch_sample(CITY)
end

#regionObject


20
21
22
# File 'lib/ffaker/address_gr.rb', line 20

def region
  fetch_sample(STATE)
end

#street_addressObject


36
37
38
# File 'lib/ffaker/address_gr.rb', line 36

def street_address
  "#{fetch_sample(STREET_PREFIX)} #{street_name}, #{street_nbr}"
end

#street_nameObject


28
29
30
# File 'lib/ffaker/address_gr.rb', line 28

def street_name
  fetch_sample(STREET)
end

#street_nbrObject


32
33
34
# File 'lib/ffaker/address_gr.rb', line 32

def street_nbr
  FFaker.numerify(fetch_sample(STREET_NUMBER))
end

#zip_codeObject


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

def zip_code
  FFaker.numerify '#####'
end