Class: EgovUtils::District

Inherits:
AzaharaSchema::Attribute
  • Object
show all
Defined in:
app/attributes/egov_utils/district.rb

Instance Method Summary collapse

Constructor Details

#initializeDistrict

Returns a new instance of District.



4
5
6
# File 'app/attributes/egov_utils/district.rb', line 4

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

Instance Method Details

#available_valuesObject



8
9
10
# File 'app/attributes/egov_utils/district.rb', line 8

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