Sha256: ba5c005d8cdbc088c238450a5b660e9d387583ec25494cb503cf71a23007a084

Contents?: true

Size: 913 Bytes

Versions: 1

Compression:

Stored size: 913 Bytes

Contents

# frozen_string_literal: true

module FFakerTW
  module AddressIN
    include FFakerTW::Address

    extend ModuleUtils
    extend self

    def zip_code
      FFakerTW.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
      FFakerTW::Address.country('IN')
    end

    def country_code
      FFakerTW::Address.country_code('India')
    end

    def time_zone
      'Asia/Kolkata'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffakerTW-0.1.0 lib/ffakerTW/address_in.rb