Sha256: b0ae109e1c9192e89cf873c24298fb8ad53fd1160a36eb8bf00bf7e8f213c898

Contents?: true

Size: 407 Bytes

Versions: 5

Compression:

Stored size: 407 Bytes

Contents

module Unidom::Geo::China::Concerns::AsInferiorRegion

  extend ActiveSupport::Concern

  included do |includer|

    def super_regions
      numeric_code_suffix_empty? ? (numeric_code_middle_empty? ? self.class.none : self.class.numeric_coded_as("#{numeric_code_prefix}0000")) : self.class.numeric_coded_as("#{numeric_code_prefix}#{numeric_code_middle}00")
    end

  end

  module ClassMethods
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
unidom-geo-china-0.4.4 app/models/unidom/geo/china/concerns/as_inferior_region.rb
unidom-geo-china-0.4.3 app/models/unidom/geo/china/concerns/as_inferior_region.rb
unidom-geo-china-0.4.2 app/models/unidom/geo/china/concerns/as_inferior_region.rb
unidom-geo-china-0.4.1 app/models/unidom/geo/china/concerns/as_inferior_region.rb
unidom-geo-china-0.4 app/models/unidom/geo/china/concerns/as_inferior_region.rb