Module: FFaker::AddressUS
Constant Summary
collapse
- ZIP_FORMATS =
['#####', '#####-####'].freeze
- CONTINENTAL_STATE =
(STATE - %w(Hawaii Alaska))
- CONTINENTAL_STATE_ABBR =
(STATE_ABBR - %w(HI AK))
Constants included
from Address
FFaker::Address::CITY_PREFIXES, FFaker::Address::COMPASS_DIRECTIONS, FFaker::Address::SEC_ADDR
Instance Method Summary
collapse
const_missing, k, underscore
#fetch_sample, #rand, #shuffle
Methods included from Address
#building_number, #city, #city_prefix, #city_suffix, #country, #country_code, #neighborhood, #secondary_address, #street_address, #street_name, #street_suffix, #time_zone, #uk_country, #uk_county, #uk_postcode, #us_state, #us_state_abbr
Instance Method Details
#continental_state ⇒ Object
32
33
34
|
# File 'lib/ffaker/address_us.rb', line 32
def continental_state
fetch_sample(CONTINENTAL_STATE)
end
|
#continental_state_abbr ⇒ Object
36
37
38
|
# File 'lib/ffaker/address_us.rb', line 36
def continental_state_abbr
fetch_sample(CONTINENTAL_STATE_ABBR)
end
|
#state ⇒ Object
20
21
22
|
# File 'lib/ffaker/address_us.rb', line 20
def state
fetch_sample(STATE)
end
|
#state_abbr ⇒ Object
24
25
26
|
# File 'lib/ffaker/address_us.rb', line 24
def state_abbr
fetch_sample(STATE_ABBR)
end
|
#state_and_territories_abbr ⇒ Object
28
29
30
|
# File 'lib/ffaker/address_us.rb', line 28
def state_and_territories_abbr
fetch_sample(STATE_AND_TERRITORIES_ABBR)
end
|