module FFaker::AddressIN
Public Instance Methods
Source
# File lib/ffaker/address_in.rb, line 44 def country FFaker::Address.country('IN') end
Source
# File lib/ffaker/address_in.rb, line 48 def country_code FFaker::Address.country_code('India') end
Source
# File lib/ffaker/address_in.rb, line 24 def state_abbr fetch_sample(STATE_ABBR) end
Source
# File lib/ffaker/address_in.rb, line 36 def state_and_union_territory fetch_sample(STATE + UNION_TERRITORY) end
Source
# File lib/ffaker/address_in.rb, line 40 def state_and_union_territory_abbr fetch_sample(STATE_ABBR + UNION_TERRITORY_ABBR) end
Source
# File lib/ffaker/address_in.rb, line 28 def union_territory fetch_sample(UNION_TERRITORY) end
Source
# File lib/ffaker/address_in.rb, line 32 def union_territory_abbr fetch_sample(UNION_TERRITORY_ABBR) end
Source
# File lib/ffaker/address_in.rb, line 10 def zip_code FFaker.numerify('######') end
Also aliased as: pincode