Sha256: dde6c1acbcd1c685309a39461baf520c3b4c5cd6763606b27e378d6be02ebc0e

Contents?: true

Size: 658 Bytes

Versions: 1

Compression:

Stored size: 658 Bytes

Contents

# frozen_string_literal: true

module FFakerTW
  module AddressGR
    include FFakerTW::Address

    extend ModuleUtils
    extend self

    STREET_PREFIX = [%w[Οδός Πάροδος]].freeze
    STREET_NUMBER = [%w[# ## ###]].freeze
    STATE = REGION

    def zip_code
      FFakerTW.numerify '#####'
    end

    def region
      fetch_sample(STATE)
    end

    def city
      fetch_sample(CITY)
    end

    def street_name
      fetch_sample(STREET)
    end

    def street_nbr
      FFakerTW.numerify(fetch_sample(STREET_NUMBER))
    end

    def street_address
      "#{fetch_sample(STREET_PREFIX)} #{street_name}, #{street_nbr}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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