Sha256: d8199da4766c4627defc2802acf90d148cc75e58c4b4f6de6c577993e5d04189

Contents?: true

Size: 351 Bytes

Versions: 6

Compression:

Stored size: 351 Bytes

Contents

# encoding: utf-8

module Faker
  # Source: http://www.thai-language.com/
  module NameTH
    extend ModuleUtils
    extend self

    def first_name
      FIRST_NAMES.sample
    end

    def last_name
      LAST_NAMES.sample
    end

    def nick_name
      NICK_NAMES.sample
    end

    def name
      "#{first_name} #{last_name}"
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/lib/ffaker/name_th.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/lib/ffaker/name_th.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/lib/ffaker/name_th.rb
ffaker-1.32.1 lib/ffaker/name_th.rb
ffaker-1.32.0 lib/ffaker/name_th.rb
ffaker-1.31.0 lib/ffaker/name_th.rb