Sha256: 61a186fd74f095e333c08c9afd5dc3306f4191a5a9a1f639ce0d9092acb80aa0

Contents?: true

Size: 621 Bytes

Versions: 6

Compression:

Stored size: 621 Bytes

Contents

# encoding: utf-8

require 'ffaker/address'

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.11.0 lib/ffaker/address_ru.rb
ffaker-2.10.0 lib/ffaker/address_ru.rb
ffaker-2.9.0 lib/ffaker/address_ru.rb
ffaker-2.8.1 lib/ffaker/address_ru.rb
ffaker-2.8.0 lib/ffaker/address_ru.rb
ffaker-2.7.0 lib/ffaker/address_ru.rb