module FFaker::AddressIN
Public Instance Methods
city()
click to toggle source
# File lib/ffaker/address_in.rb, line 16 def city fetch_sample(CITY) end
country()
click to toggle source
# File lib/ffaker/address_in.rb, line 44 def country FFaker::Address.country('IN') end
country_code()
click to toggle source
# File lib/ffaker/address_in.rb, line 48 def country_code FFaker::Address.country_code('India') end
state()
click to toggle source
# File lib/ffaker/address_in.rb, line 20 def state fetch_sample(STATE) end
state_abbr()
click to toggle source
# File lib/ffaker/address_in.rb, line 24 def state_abbr fetch_sample(STATE_ABBR) end
state_and_union_territory()
click to toggle source
# File lib/ffaker/address_in.rb, line 36 def state_and_union_territory fetch_sample(STATE + UNION_TERRITORY) end
state_and_union_territory_abbr()
click to toggle source
# File lib/ffaker/address_in.rb, line 40 def state_and_union_territory_abbr fetch_sample(STATE_ABBR + UNION_TERRITORY_ABBR) end
time_zone()
click to toggle source
# File lib/ffaker/address_in.rb, line 52 def time_zone 'Asia/Kolkata' end
union_territory()
click to toggle source
# File lib/ffaker/address_in.rb, line 28 def union_territory fetch_sample(UNION_TERRITORY) end
union_territory_abbr()
click to toggle source
# File lib/ffaker/address_in.rb, line 32 def union_territory_abbr fetch_sample(UNION_TERRITORY_ABBR) end
zip_code()
click to toggle source
# File lib/ffaker/address_in.rb, line 10 def zip_code FFaker.numerify('######') end
Also aliased as: pincode