Sha256: 8778da54833b9cc7639fcda461bdbf080147c8495c2eb13206583e2d55c1b1a4

Contents?: true

Size: 249 Bytes

Versions: 12

Compression:

Stored size: 249 Bytes

Contents

module EgovUtils
  class Region < AzaharaSchema::Attribute

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

    def available_values
      EgovUtils::Address.regions.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/region.rb
egov_utils-0.1.12 app/attributes/egov_utils/region.rb
egov_utils-0.1.11 app/attributes/egov_utils/region.rb
egov_utils-0.1.10 app/attributes/egov_utils/region.rb
egov_utils-0.1.9 app/attributes/egov_utils/region.rb
egov_utils-0.1.8 app/attributes/egov_utils/region.rb
egov_utils-0.1.7 app/attributes/egov_utils/region.rb
egov_utils-0.1.6 app/attributes/egov_utils/region.rb
egov_utils-0.1.5 app/attributes/egov_utils/region.rb
egov_utils-0.1.4 app/attributes/egov_utils/region.rb
egov_utils-0.1.1 app/attributes/egov_utils/region.rb
egov_utils-0.1.0 app/attributes/egov_utils/region.rb