Module: FFaker::AddressIT
Constant Summary
collapse
- NUM =
['#', '##', '##', '###', '####', '#-##'].freeze
- SEP =
[', ', ' '].freeze
- TYPE =
%w[via viale piazza piazzale].freeze
- POSTAL_CODE_FORMATS =
['#####'].freeze
Instance Method Summary
collapse
const_missing, k, luhn_check, underscore, unique
#fetch_sample, #rand, #shuffle
Instance Method Details
#city ⇒ Object
21
22
23
|
# File 'lib/ffaker/address_it.rb', line 21
def city
fetch_sample(CITY)
end
|
#full_address ⇒ Object
25
26
27
|
# File 'lib/ffaker/address_it.rb', line 25
def full_address
%(#{street_address}#{fetch_sample(SEP)}#{postal_code} #{fetch_sample(CITY)})
end
|
#region ⇒ Object
29
30
31
|
# File 'lib/ffaker/address_it.rb', line 29
def region
fetch_sample(REGION)
end
|