Sha256: 3963235165af7adf36ee23763e0df3994199e7f1cad3e9e7ac845632a420f191

Contents?: true

Size: 607 Bytes

Versions: 6

Compression:

Stored size: 607 Bytes

Contents

# frozen_string_literal: true

module FFaker
  module AddressRU
    include FFaker::Address

    extend ModuleUtils
    extend self

    POSTAL_CODE_FORMAT = ['######'].freeze
    STREET_NBR_FORMATS = %w[## # ###].freeze

    def city
      fetch_sample(CITY)
    end

    def province
      fetch_sample(PROVINCE)
    end

    def zip_code
      FFaker.numerify(POSTAL_CODE_FORMAT)
    end

    def street_name
      fetch_sample(STREET)
    end

    def street_address
      "#{street_name}, ะด. #{street_number}"
    end

    def street_number
      FFaker.numerify(STREET_NBR_FORMATS)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ffaker-2.23.0 lib/ffaker/address_ru.rb
ffaker-2.22.0 lib/ffaker/address_ru.rb
ffaker-2.21.0 lib/ffaker/address_ru.rb
ffaker-2.20.0 lib/ffaker/address_ru.rb
ffaker-2.19.0 lib/ffaker/address_ru.rb
ffaker-2.18.0 lib/ffaker/address_ru.rb