Sha256: 5418e56ca4e487002a6a18ffef053fba8390bbc566325ad9ba73fdbc745a455a

Contents?: true

Size: 503 Bytes

Versions: 5

Compression:

Stored size: 503 Bytes

Contents

##
# Ethnicity 是中国的民族代码。符合 GB/T 3304-1991 标准。
# Alphabetic 基于字母代码,Numeric 基于数字代码。

module Unidom::Party::China::Ethnicity

  class Alphabetic < ActiveRecord::Type::Value

    include ProgneTapera::EnumConfig

    enum :unidom_china_ethnicity_alphabetic, :unidom_china_ethnicity

  end

  class Numeric < ActiveRecord::Type::Value

    include ProgneTapera::EnumConfig

    enum :unidom_china_ethnicity_numeric, :unidom_china_ethnicity

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
unidom-party-china-1.0 app/types/unidom/party/china/ethnicity.rb
unidom-party-china-0.8.1 app/types/unidom/party/china/ethnicity.rb
unidom-party-china-0.8 app/types/unidom/party/china/ethnicity.rb
unidom-party-china-0.7.3 app/types/unidom/party/china/ethnicity.rb
unidom-party-china-0.7.2 app/types/unidom/party/china/ethnicity.rb