Sha256: 714fc9fc56173964190fe22cbbbe75bf738dd174d7ff941007a64749e95e815c

Contents?: true

Size: 255 Bytes

Versions: 12

Compression:

Stored size: 255 Bytes

Contents

module EgovUtils
  class District < AzaharaSchema::Attribute

    def initialize
      super(EgovUtils::Address, 'district', 'list')
    end

    def available_values
      EgovUtils::Address.districts.collect{|d| [d[:name],d[:name]] }
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
egov_utils-0.1.13 app/attributes/egov_utils/district.rb
egov_utils-0.1.12 app/attributes/egov_utils/district.rb
egov_utils-0.1.11 app/attributes/egov_utils/district.rb
egov_utils-0.1.10 app/attributes/egov_utils/district.rb
egov_utils-0.1.9 app/attributes/egov_utils/district.rb
egov_utils-0.1.8 app/attributes/egov_utils/district.rb
egov_utils-0.1.7 app/attributes/egov_utils/district.rb
egov_utils-0.1.6 app/attributes/egov_utils/district.rb
egov_utils-0.1.5 app/attributes/egov_utils/district.rb
egov_utils-0.1.4 app/attributes/egov_utils/district.rb
egov_utils-0.1.1 app/attributes/egov_utils/district.rb
egov_utils-0.1.0 app/attributes/egov_utils/district.rb