Module: FFaker::AddressIN
Constant Summary
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, #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
16
17
18
|
# File 'lib/ffaker/address_in.rb', line 16
def city
fetch_sample(CITY)
end
|
#state ⇒ Object
20
21
22
|
# File 'lib/ffaker/address_in.rb', line 20
def state
fetch_sample(STATE)
end
|
#state_abbr ⇒ Object
24
25
26
|
# File 'lib/ffaker/address_in.rb', line 24
def state_abbr
fetch_sample(STATE_ABBR)
end
|
#state_and_union_territory ⇒ Object
36
37
38
|
# File 'lib/ffaker/address_in.rb', line 36
def state_and_union_territory
fetch_sample(STATE + UNION_TERRITORY)
end
|
#state_and_union_territory_abbr ⇒ Object
40
41
42
|
# File 'lib/ffaker/address_in.rb', line 40
def state_and_union_territory_abbr
fetch_sample(STATE_ABBR + UNION_TERRITORY_ABBR)
end
|
#time_zone ⇒ Object
52
53
54
|
# File 'lib/ffaker/address_in.rb', line 52
def time_zone
'Asia/Kolkata'
end
|
#union_territory ⇒ Object
28
29
30
|
# File 'lib/ffaker/address_in.rb', line 28
def union_territory
fetch_sample(UNION_TERRITORY)
end
|
#union_territory_abbr ⇒ Object
32
33
34
|
# File 'lib/ffaker/address_in.rb', line 32
def union_territory_abbr
fetch_sample(UNION_TERRITORY_ABBR)
end
|
#zip_code ⇒ Object
Also known as:
pincode
10
11
12
|
# File 'lib/ffaker/address_in.rb', line 10
def zip_code
FFaker.numerify('######')
end
|