Module: Faker::AddressBR
Constant Summary
collapse
- STREET_PREFIX =
%w( Rua Avenida Travessa Alameda )
Constants included
from Address
Faker::Address::CITY_PREFIXES, Faker::Address::COMPASS_DIRECTIONS, Faker::Address::SEC_ADDR
Instance Method Summary
collapse
const_missing, k, underscore
Methods included from Address
#building_number, #city_prefix, #city_suffix, #country, #country_code, #neighborhood, #secondary_address, #street_address, #street_name, #street_suffix, #uk_country, #uk_county, #uk_postcode, #us_state, #us_state_abbr
Instance Method Details
#city ⇒ Object
26
27
28
|
# File 'lib/ffaker/address_br.rb', line 26
def city
CITY.sample
end
|
#state ⇒ Object
18
19
20
|
# File 'lib/ffaker/address_br.rb', line 18
def state
STATE.sample
end
|
#state_abbr ⇒ Object
22
23
24
|
# File 'lib/ffaker/address_br.rb', line 22
def state_abbr
STATE_ABBR.sample
end
|
#street_prefix ⇒ Object
30
31
32
|
# File 'lib/ffaker/address_br.rb', line 30
def street_prefix
STREET_PREFIX.sample
end
|
#zip_code ⇒ Object
14
15
16
|
# File 'lib/ffaker/address_br.rb', line 14
def zip_code
Faker.numerify '#####-###'
end
|