1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
# frozen_string_literal: true
module FFaker
module AddressIN
include FFaker::Address
extend ModuleUtils
extend self
def zip_code
FFaker.numerify('######')
end
alias pincode zip_code
def city
fetch_sample(CITY)
end
def state
fetch_sample(STATE)
end
def state_abbr
fetch_sample(STATE_ABBR)
end
def union_territory
fetch_sample(UNION_TERRITORY)
end
def union_territory_abbr
fetch_sample(UNION_TERRITORY_ABBR)
end
def state_and_union_territory
fetch_sample(STATE + UNION_TERRITORY)
end
def state_and_union_territory_abbr
fetch_sample(STATE_ABBR + UNION_TERRITORY_ABBR)
end
def country
FFaker::Address.country('IN')
end
def country_code
FFaker::Address.country_code('India')
end
def time_zone
'Asia/Kolkata'
end
end
end
|